disable ssh root access on CentOS

# cat /etc/ssh/sshd_config

# vi /etc/ssh/sshd_config
Go to line
# PermitRootLogin yes
 and change to
PermitRootLogin no

# service sshd restart

Comments