ubuntu16 允许root用户登录

ubuntu16上 PermitRootLogin yes 

 vi /etc/ssh/sshd_config  修改为

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes

 

 

修改为

 

# Authentication:
LoginGraceTime 120
#PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yes

posted on 2019-03-13 10:30  现实不似你所见  阅读(547)  评论(0编辑  收藏  举报