1.进入谷歌云实例面板
2.切换到root角色sudo -i 3.修改SSH配置文件/etc/ssh/sshd_configvi /etc/ssh/sshd_config修改PermitRootLogin和PasswordAuthentication为yes
# Authentication:PermitRootLogin yes //默认为no,需要开启root用户访问改为yes
# Change to no to disable tunnelled clear text passwordsPasswordAuthentication yes //默认为no,改为yes开启密码登陆4.给root用户设置密码passwd root5.重启SSH服务使修改生效/etc/init.d/ssh restart6.登录在xshell中,直接使用root账号密码登录。
转载于:https://www.cnblogs.com/lwlq/p/11557417.html