Google Cloud秘钥登录切换到ssh登录
1.切换到 root
sudo -i
2.编辑ssh配置文件
vi /etc/ssh/sshd_config
3.修改以下内容即可
PermitRootLogin yes
PasswordAuthentication yes
4.为root创建密码
passwd root
5.重启ssh
service sshd restart
6.尝试使用ssh工具登录
发表评论: