Enable Root SSH Login CentOS 5x, 6.x

CentOS

Enable Root SSH Login CentOS 5x, 6.x

SSH server settings are stored in the /etc/ssh/sshd_config file. To enable root logins, make sure you have the following entry:

# Enable root logins:
PermitRootLogin yes

and restart the sshd service:

service sshd restart

If you need root access, login as a normal user and use the su command.

Leave a Reply