centos7安全策略之——禁用ssh的root登陆

编辑sshd_config配置文件

vim /etc/ssh/sshd_config

PermitRootLogin yes更改为no

重启ssh

systemctl restart sshd

转载于:https://my.oschina.net/u/3093577/blog/3062899

你可能感兴趣的:(运维)