修改/etc/ssh/sshd_config文件,把PermitRootLogin Prohibit-password 添加#注释掉

新添加:PermitRootLogin yes

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

3.重新使用root连接,ok

https://jingyan.baidu.com/article/154b463112d8f328ca8f419b.html

 

 

posted on 2018-11-24 22:27  Time。时光  阅读(295)  评论(0编辑  收藏  举报