Tuesday, February 21, 2012

Allow root account to use SSH in Solaris


Q. Root access to ssh server blocked. How do I allow root account access to ssh server?
A. Allowing direct root access over ssh is a security risk. However following steps will allow you to login as root over ssh session:
Open sshd_config file:
# vi /etc/ssh/sshd_config
Find out line that read as follows:
PermitRootLogin no
Set it as follows:
PermitRootLogin yes
Find out line that read as follows (this line may not exists in your configuration):
DenyUsers root user2 user3
Set is as follows:
DenyUsers user2 user3
Save and close the file. Restart the sshd:
# /lib/svc/method/sshd restart

Search & Buy Amazon Products at discounted rate!!

Newsletter

Subscribe to AtoZ-networking Newsletter

Do you want to receive Linux FAQs, Microsoft FAQ, Solaris FAQ, detailed Networking tutorials and tips published at atoz-networking? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

Sign-up for the newsletter