问题:kali系统中启动ssh服务后,通过Xshell等客户端连接时输入正确密码后一直提示密码错误

解决方案:

修改:/etc/ssh/sshd_config 里面的文件,注意文件名是(sshd_config 

root@tiankali:~# vim /etc/ssh/sshd_config 

查找:

# Authentication:

LoginGraceTime 2m
PermitRootLogin prohibit-password
StrictModes yes

修改:

# Authentication:

LoginGraceTime 2m
PermitRootLogin yes
StrictModes yes

重启shh服务:service ssh restart

使用xshell连接成功

 

相关文章:

  • 2021-09-07
  • 2021-06-15
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 1970-01-01
  • 2021-05-22
猜你喜欢
  • 2022-12-23
  • 2021-09-20
  • 2021-06-11
  • 2021-08-02
  • 2021-12-31
  • 2022-12-23
相关资源
相似解决方案