修改/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
修改/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
转载于:https://www.cnblogs.com/helloworld6379/p/10013898.html