Saturday, September 11, 2010

ssh login for root user

In an environment where there is a need to manage thousands of servers, ssh plays a very important role. The ssh utility enables system administrator to login to every server from a common server as root. This eliminates the need to type in root passwords for each and every server when logging in.
There are obviously restrictions enforced for ssh on root user that has to be tweaked.


The file /etc/ssh/sshd_config has the parameter for enabling or disabling ssh for root.


# Are root logins permitted using sshd.
# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user
# maybe denied access by a PAM module regardless of this setting.
# Valid options are yes, without-password, no.
PermitRootLogin yes


Restart the sshd after changing any configuration.

No comments:

Post a Comment