Tuesday, April 29, 2008

HowTo: Secure SSH by Disabling Root Logins

Securing SSH is one major thing on server boxes regardless of server location. Here's one quick tip of adding security to your SSH connection by disabling any root logins.

How to secure SSH by disabling root logins?

To disable direct root logins, edit /etc/ssh/sshd_config file and replace this line

#PermitRootLogin yes

with the below line

PermitRootLogin no

Remember to remove the # comment character. Then restart SSH service

# service sshd restart

Quick tip, enjoy.

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy