Xshell链接不上虚拟机&链接提示SSH服务器拒绝了密码,请再试一次

问题1:Xshell链接不上虚拟机

#启动ssh服务
/etc/init.d/ssh start
#查看SSH服务22端口是否开启
netstat -antulp | grep ssh


问题2:XShell链接Linux提示ssh服务器拒绝了密码,请再试一次

缘由:通常是设置了禁止root远程登陆。python

vim /etc/ssh/sshd_config

将下列配置shell

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes

修改成vim

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes


参考:https://blog.csdn.net/fanren224/article/details/70862346 服务器

相关文章
相关标签/搜索