One solution is to run sshd on a non-standard port. Most automated attacks only attempt to connect on port 22 and therefore, this can be an effective way to hide from many attackers. To configure this, just change the Port line in /etc/ssh/sshd_config and restart ssh as follows;
vi /etc/ssh/sshd_config
Port 922 <-- update port number and uncomment if the setting is commented
/etc/init.d/sshd restart
vi /etc/ssh/sshd_config
Port 922 <-- update port number and uncomment if the setting is commented
/etc/init.d/sshd restart
Comments