Xshell不能连接Kali系统SSH的解决

  • 修改sshd_config文件
vim /etc/ssh/sshd_config

将#PasswordAuthentication yes的注释去掉
将#PermitRootLogin prohibit-password的注释去掉 ,prohibit-password 改为yes

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password

改为

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
  • 重启服务
service ssh restart
posted @ 2020-05-27 19:22  renblog  阅读(444)  评论(1编辑  收藏  举报