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

问题现象:

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

    Ubuntu下root账户无法使用xshell远程连接解决方法总结_第1张图片

  • 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

你可能感兴趣的:(linux,ubuntu-配置)