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

将#PasswordAuthentication yes的注释去掉
将#PermitRootLogin prohibit-password的注释去掉 ,prohibit-password 改为yes
Xshell不能连接Kali系统SSH的解决

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password

改为

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
  • 重启服务
service ssh restart

相关文章:

  • 2021-11-18
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-09-25
  • 2021-07-06
  • 2021-12-27
猜你喜欢
  • 2021-11-21
  • 2021-08-23
  • 2021-09-10
相关资源
相似解决方案