SSH服务器拒绝了密码,xshell连不上虚拟机怎么办

Posted Azrael

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SSH服务器拒绝了密码,xshell连不上虚拟机怎么办相关的知识,希望对你有一定的参考价值。

用Xshell链接虚拟机的时候,出现下面情况:

这是sshd的设置不允许root用户用密码远程登录

解决方案:

修改 vim /etc/ssh/sshd_config

找到# Authentication:
LoginGraceTime 120
PermitRootLogin without passwd
StrictModes yes

改成

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

重启虚拟机

以上是关于SSH服务器拒绝了密码,xshell连不上虚拟机怎么办的主要内容,如果未能解决你的问题,请参考以下文章

SSH服务器拒绝了密码,xshell连不上linux怎么办

为啥用xshell连接kali显示 ssh拒绝访问

ssh服务器拒绝远程连接

Xshell连不上Kali

Xshell连接虚拟机提示SSH服务器拒绝密码

SSH密钥登录突然连不上了