Google Compute Engine 开启 ssh 用户名密码登录

1、使用 Google Cloud SSH 连接

2、 切换到 root 用户

sudo -i

3、 编辑ssh配置文件

vi /etc/ssh/sshd_config

修改以下值:

PermitRootLogin yes
PasswordAuthentication yes

4、重启ssh

systemctl restart sshd