虚拟机之ubuntu----《二》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!

转载链接:https://blog.csdn.net/qq_35445306/article/details/78771398

参考链接:https://www.cnblogs.com/vitre/p/5227456.html

猜你喜欢

转载自www.cnblogs.com/fh-fendou/p/11121995.html