新建谷歌云的Computer 实例不准许远程SSH 密码登陆,下面给大家介绍如何开启SSH远程连接

sudo nano /etc/ssh/sshd_config
找到PermitRootLogin 如果最前面有#号去掉#号改为PermitRootLogin yes
找到PasswordAuthentication 如果前面有#号去掉前面#号改为#PasswordAuthentication yes

sudo passwd root
为root用户设置密码,输入2遍。

sudo reboot
重启服务器

打开Xshell享受远程连接

发表回复