美文网首页
SSH服务器拒绝了密码,请再试一次

SSH服务器拒绝了密码,请再试一次

作者: 催化剂 | 来源:发表于2020-03-04 09:50 被阅读0次

https://www.cnblogs.com/y593216/p/11232703.html

应该是sshd的设置不允许root用户用密码远程登录

1、修改 vim /etc/ssh/sshd_config

找到# Authentication:

LoginGraceTime 120

PermitRootLogin without passwd

StrictModes yes

改成

# Authentication:

LoginGraceTime 120

PermitRootLogin yes

StrictModes yes

2、重启ssh

systemctl restart sshd

相关文章

网友评论

      本文标题:SSH服务器拒绝了密码,请再试一次

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