深度(deepin)系统不能ssh root用户登录


vi /etc/ssh/sshd_config
找到这一部分信息
刚进去信息应该是这样

# Authentication:

#LoginGraceTime 2m

#PermitRootLogin prohibit-password

#StrictModes yes

修改后

# Authentication:

LoginGraceTime 2m

PermitRootLogin yes

StrictModes yes

 

记得 # Authentication: 这一条信息不要修改

然后 wq 退出

 

修改成功以后,重启ssh服务:

service ssh restart

重启ssh服务之后就可以了

 

 

posted @ 2019-11-07 11:56  小张1995  阅读(2564)  评论(0编辑  收藏  举报