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

 

首先切换root

 

vi /etc/ssh/sshd_config

 

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

 

 

service ssh restart

 

posted @ 2022-01-11 17:21  小菜鸟当黑客  阅读(308)  评论(0编辑  收藏  举报