解决方法是:

修改/etc/ssh/ssh_config文件,

#PermitRootLogin prohibit-password改为
PermitRootLogin yes

 

然后 PasswordAuthentication yes

最后,设置root的密码。passwd root。

重启ssh(/etc/init.d/ssh restart)之后就可以了。

相关文章:

  • 2021-12-20
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2021-08-17
  • 2021-12-21
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案