编辑sshd_config配置文件
vim /etc/ssh/sshd_config
PermitRootLogin yes更改为no
重启ssh
systemctl restart sshd
编辑sshd_config配置文件
vim /etc/ssh/sshd_config
PermitRootLogin yes更改为no
重启ssh
systemctl restart sshd
转载于:https://my.oschina.net/u/3093577/blog/3062899