root xshell登陆Ubuntu

https://www.jianshu.com/p/c8ee39488d2a

xshell测试非root用户,可以正常连接,但是root用户仍旧无法访问

解决方法:
修改 /etc/ssh/sshd_config 文件把PermitRootLogin Prohibit-password 添加#注释掉

新添加:PermitRootLogin yes

重启ssh服务 /etc/init.d/ssh restart

重新使用root连接,ok!

原文地址:https://www.cnblogs.com/SunshineKimi/p/12264818.html