https://www.jianshu.com/p/c8ee39488d2a

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

解决方法:
修改 /etc/ssh/sshd_config 文件把PermitRootLogin Prohibit-password 添加#注释掉

新添加:PermitRootLogin yes

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

重新使用root连接,ok!

 

相关文章:

  • 2021-11-12
  • 2021-11-02
  • 2021-11-12
  • 2021-06-11
  • 2021-11-28
  • 2021-06-26
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-08-02
  • 2021-08-02
  • 2022-02-22
  • 2021-08-07
  • 2022-12-23
相关资源
相似解决方案