google cloud 远程ssh方法

1.切到 root

sudo -i

2.打开ssh配置文件

vi /etc/ssh/sshd_config

3.修改以下内容即可

PermitRootLogin yes
PasswordAuthentication yes

4.重启ssh

service sshd restart
5. 修改root密码:

password root

Leave a Reply

Your email address will not be published. Required fields are marked *