1秒登录
用Xshell链接虚拟机的时候,出现下面情况:
这是sshd的设置不允许root用户用密码远程登录
解决方案:
修改 vim /etc/ssh/sshd_config
找到# Authentication:LoginGraceTime 120PermitRootLogin without passwdStrictModes yes
改成
# Authentication:LoginGraceTime 120PermitRootLogin yesStrictModes yes
重启虚拟机
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。
这是sshd的设置不允许root用户用密码远程登录
解决方案:
修改 vim /etc/ssh/sshd_config
找到# Authentication:
LoginGraceTime 120
PermitRootLogin without passwd
StrictModes yes
改成
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
重启虚拟机