谷歌云用SSH工具连接方法教程

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

图片[1]-谷歌云用SSH工具连接方法教程-七年博客

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开启密码登陆

然后 按 Esc

:wq

保存

1.4.给root用户设置密码

passwd root

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

/etc/init.d/ssh restart

图片[2]-谷歌云用SSH工具连接方法教程-七年博客

1.6.登录
在SSH工具,直接使用root账号密码登录。

图片[3]-谷歌云用SSH工具连接方法教程-七年博客

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容