睁眼写BUG,闭眼改BUG。

Ubuntu Root 账号允许远程登录

2019.08.28

Ubuntu Root 账号允许远程登录

不建议这样设置, 博主设置纯属为了学习方便

vi /etc/ssh/sshd_config
# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password     //注释此行
PermitRootLogin yes                             //加入此行
StrictModes yes
# 重启服务
service sshd restart