vi /etc/ssh/sshd-config
找到#PermitRootLogin yes
修改为 PermitRootLogin no
:wq
重启ssh服务
service sshd restart
转载于:https://blog.51cto.com/owner/1349344
vi /etc/ssh/sshd-config
找到#PermitRootLogin yes
修改为 PermitRootLogin no
:wq
重启ssh服务
service sshd restart
转载于:https://blog.51cto.com/owner/1349344