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

来源:互联网 发布:二分查找算法举例说明 编辑:程序博客网 时间:2024/06/07 19:23

问题现象:

  • 使用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

原创粉丝点击