vim /etc/ssh/sshd_config
将#PasswordAuthentication yes的注释去掉 将#PermitRootLogin prohibit-password的注释去掉 ,prohibit-password 改为yes
service ssh restart
Xshell不能连接Kali系统SSH的解决
原文:https://www.cnblogs.com/renhaoblog/p/12975867.html