美文网首页
xshell 不能连接centos7,拒绝连接

xshell 不能连接centos7,拒绝连接

作者: 我的女友漏气了 | 来源:发表于2017-02-23 15:19 被阅读0次

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

修改 vim /etc/ssh/sshd_config

找到# Authentication:

LoginGraceTime 120

PermitRootLogin without passwd

StrictModes yes

改成

# Authentication:

LoginGraceTime 120

PermitRootLogin yes

StrictModes yes

重启虚拟机

相关文章

网友评论

      本文标题:xshell 不能连接centos7,拒绝连接

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