美文网首页
xshell连接linux,ssh服务器拒绝了密码解决办法

xshell连接linux,ssh服务器拒绝了密码解决办法

作者: wild_w0lf | 来源:发表于2018-05-18 10:19 被阅读0次

ssh,用root登陆,密码明明正确却拒绝连接,这时就需要更改一下设置。

例:kali下

cd /etc/ssh

修改sshd_config文件,注意ssh_config是针对客户端的配置文件,而sshd_config是针对服务器端的配置文件。千万不要弄错了。

vi sshd_config

将 # Authentication:

LoginGraceTime 120

PermitRootLogin prohibit-password

StrictModes yes

改为:

# Authentication:

LoginGraceTime 120

PermitRootLogin yes

StrictModes yes

相关文章

网友评论

      本文标题:xshell连接linux,ssh服务器拒绝了密码解决办法

      本文链接:https://www.haomeiwen.com/subject/qtgwdftx.html