Xshell无法使用root远程登录Ubuntu16服务器

修改/etc/ssh/sshd_config文件,把PermitRootLogin Prohibit-password 添加#注释掉

新添加:PermitRootLogin yes

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

3.重新使用root连接,ok

https://jingyan.baidu.com/article/154b463112d8f328ca8f419b.html

猜你喜欢

转载自www.cnblogs.com/helloworld6379/p/10013898.html