Ubuntu下root账户无法使用xshell远程连接解决方法总结

问题现象:

  • 使用Xshell访问ubuntu服务器,无法连接

    问题现象

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

解决方法:

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

  2. 新添加:PermitRootLogin yes

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

  4. 重新使用root连接,ok!

问题记录:2017年12月11日12:12:09

发布了23 篇原创文章 · 获赞 24 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/qq_35445306/article/details/78771398