xshell 不能连接centos7,拒绝连接

2017-02-23  本文已影响0人  我的女友漏气了

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

修改 vim /etc/ssh/sshd_config

找到# Authentication:

LoginGraceTime 120

PermitRootLogin without passwd

StrictModes yes

改成

# Authentication:

LoginGraceTime 120

PermitRootLogin yes

StrictModes yes

重启虚拟机

上一篇 下一篇

猜你喜欢

热点阅读