Friday, March 25, 2011

Disabling root SSH logins.

CentOS:

1,
Edit the /etc/ssh/sshd_config file and set the PermitRootLogin parameter to no.

[root@sor ~]# vim /etc/ssh/sshd_config
PermitRootLogin no


2, restart ssh deamon
[root@sor ~]# /etc/init.d/sshd restart

No comments:

Post a Comment