Securing SSH on Linux

SSH (Secure Shell) is a protocol which supports logging into a remote system or executing commands on a remote system, using an encrypted communication between the two systems.

By default SSH is running version 1 and allowing direct root access to the system. You should disable direct root access on the sshd_config file and use only protocol 2 which is more secure.

1) vi /etc/ssh/sshd_config
2) Change Protocol 2,1 to Protocol 2
4) PermitRootLogin yes = no
5) Restart SSHD:

/etc/rc.d/init.d/sshd restart

Leave a Reply

Your email address will not be published. Required fields are marked *