Harry Sukumar's Weblog

Securing SSH

Posted by hsukumar on 03/06/2008

Securing SSH

In the /etc/ssh/sshd_config file change the following lines (if it is commented out remove the #):

Protocol 2
PermitRootLogin no
PermitEmptyPasswords no

Save the file and type “service sshd restart”. SSH will restart, enacting these changes. (You will need to SSH into the box with the user account you created from this point on, as root will no longer be accepted. Just “su –“ to the root account)

Enjoy

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>