【Google云】使用账号密码连接服务器

1.用root用户登入
1.1.进入谷歌云实例面板

1.2.切换到root角色

sudo -i 

1.3.修改SSH配置文件/etc/ssh/sshd_config

vi /etc/ssh/sshd_config

修改PermitRootLogin和PasswordAuthentication为yes

# Authentication:
PermitRootLogin yes //默认为no,需要开启root用户访问改为yes

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes //默认为no,改为yes开启密码登陆

设置好后按shift+ZZ保存文件

1.4.给root用户设置密码

passwd root

1.5.重启SSH服务使修改生效

/etc/init.d/ssh restart
点赞
  1. turkce说道:
    Google Chrome Windows 10
    Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is excellent, as well as the content! Abigael Neall Arleta
  2. Google Chrome Windows 8
    google hacked - child porn videos - free child porns
  3. Anthonywoore说道:
    Google Chrome Windows 10
    Trump's pressure on investigators prompted Rep. https://www.aet-transport.com/?URL=http://profile.majorleaguegaming.com/mihohume/ http://www.vanassche-fire.be/linkframe.asp?adres=https://www.vbox7.com/user:wanohogo https://kimono-navi.net/old/seek/rank.cgi?mode=link&id=358&url=https://forums.bohemia.net/profile/1173475-kunobiga/ http://www.spankingpicture.net/cgi-bin/top/out.cgi?id=pain4fem&url=https://www.tawjihnet.net/vb/members/80542/about http://ccm-1.com/tz.php?url=https://www.cutoutandkeep.net/users/smutsigaliam Zoe Lofgren, who sits on the House committee probing the insurrection, to warn that the ex-President had issued a "call to arms." "Calling out for demonstrations if, you know, anything adverse, legally, happens to him, is pretty extraordinary. And I think it's important to think through what message is being sent," the California Democrat told CNN's Pamela Brown on Sunday. In yet another sign of Trump's incessantly consuming inability to accept his election loss, he issued a statement that same evening slamming former Vice President Mike Pence for refusing his demands to overturn the result of the democratic election in 2020, and falsely claimed that the then-vice president had the power to do so.
  4. Internet Explorer Windows 7
    After I initially commented I clicked the -Notify me when new comments are added- checkbox and now each time a remark is added I get 4 emails with the identical comment. Is there any means you possibly can remove me from that service? Thanks!
  5. kyrie shoes说道:
    Internet Explorer Windows 7
    Thanks for all your effort on this site. Kim take interest in making time for investigations and it is easy to understand why. Many of us notice all regarding the dynamic medium you produce useful tips through your website and welcome response from others on that theme then our simple princess is now being taught a whole lot. Have fun with the rest of the new year. You have been doing a glorious job.

发表评论

电子邮件地址不会被公开。必填项已用 * 标注