Ubuntu solution xshell can not directly connect to the root user

vi /etc/ssh/sshd_config

 

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

 

 

service ssh restart

 

If you use a normal user to log in, please pay attention to the privileges when operating, use sudo

 

Guess you like

Origin www.cnblogs.com/dongyaotou/p/12757574.html