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

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

应该是sshd的设置不允许root用户用密码远程登录 
修改 vi /etc/ssh/sshd_config 
找到# Authentication: 
LoginGraceTime 120 
PermitRootLogin without passwd 
StrictModes yes 
改成

Authentication:

LoginGraceTime 120 
PermitRootLogin yes 
StrictModes yes 
 

然后回到界面输入 

root@kali:~# service ssh restart

猜你喜欢

转载自blog.csdn.net/nzjdsds/article/details/81158716