An apple a day keeps the doctor away !

0%

谷歌云密码连接

问题

新撸的谷歌云通过ssh秘钥连接太麻烦了

下面改用密码登陆,方便

解决方法

1.先登入谷歌云打开自带的ssh

2.切换到root角色

1
sudo -i

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

1
vi /etc/ssh/sshd_config

修改PermitRootLogin和PasswordAuthentication为yes

4.给root用户设置密码

1
passwd root

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

1
service sshd restart

连接

1
ssh [user]@[ip]

以上