用SSH工具XShell连接谷歌云 root用户
1.用root用户登入
1.1.进入谷歌云实例面板
1.2.切换到root角色
1 |
sudo -i |
1.3.修改SSH配置文件/etc/ssh/sshd_config
1 |
vi /etc/ssh/sshd_config |
修改PermitRootLogin和PasswordAuthentication为yes
1 2 3 4 5 |
# Authentication: PermitRootLogin yes //默认为no,需要开启root用户访问改为yes # Change to no to disable tunnelled clear text passwords PasswordAuthentication yes //默认为no,改为yes开启密码登陆 |
1.4.给root用户设置密码
1 |
passwd root |
1.5.重启SSH服务使修改生效
1 |
/etc/init.d/ssh restart |