centos禁止root通过ssh登录
修改配置文件:#vim /etc/ssh/sshd_config
将#PermiRootLogin的注释去掉,并将yes改为no即可。
重启sshd
#systemctl restart sshd
centos禁止root通过ssh登录
修改配置文件:#vim /etc/ssh/sshd_config
将#PermiRootLogin的注释去掉,并将yes改为no即可。
重启sshd
#systemctl restart sshd