ubuntu解决xshell不能直接连接root用户的方法

vi /etc/ssh/sshd_config

 

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

 

 

service ssh restart

 

如果使用普通用户登录的话,操作的时候注意提权,使用sudo

 

posted @ 2020-04-22 22:59  ~码铃薯~  阅读(666)  评论(0编辑  收藏  举报