Thursday, July 28, 2011

Allowing root account to ssh

Advertisements

This post explains how to allow root user to ssh directly to a linux box. This is tested in redhat rhel5 system and works on almost other linux distros.

Open the ssh configuration file
# vi /etc/ssh/sshd_config

Changethe following line
PermitRootLogin no
To
PermitRootLogin yes

Now restart the ssh demon.
/etc/init.d/sshd restart

No comments:

Post a Comment

Be nice. That's all.