One of the first things to do for webserver security is to change the SSH port. This is the port where an admin can securely login to the webserver using a client like putty and access the shell in a text mode using secure telnet or SSH. Normally the port is 22 however it is best to change this to something above 30000 otherwise there are script kiddies running software which will try to login to your server via SSH as root on port 22. If you have appropriately chosen a good root password using a password generator then this is merely a nusiance load to your server. It can be stopped by changing the SSH port to anything above 30000.
these are the kind of messages you would get in /var/log/messages before and after you change the port it is likely you wont see them
these are the kind of messages you would get in /var/log/messages before and after you change the port it is likely you wont see them
Code:
authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=h-67-102-88-164.nycmny83.covad.net user=root authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=h-67-102-88-164.nycmny83.covad.net user=mailman authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=148-36-13-69.cust.propagation.net user=root authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=www.cs-schmid.de user=bin authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=p2936d3.tokynt01.ap.so-net.ne.jp user=mysql authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=lp authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=sshd authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=rpm authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=operator authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=games authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=adm authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=nobody authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=ftp authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=monika.itabt.htl-donaustadt.ac.at user=sync
Comment