欢迎来到赛兔子家园

kali系统无法连接ssh(提示密码错误)

问题: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连接成功

 

posted on 2020-09-20 16:08  赛兔子  阅读(841)  评论(0编辑  收藏  举报

导航