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

vi /etc/ssh/sshd_config

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

service ssh restart

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

猜你喜欢

转载自www.cnblogs.com/dongyaotou/p/12757574.html