Every night I get thousands of attempts to access my server illegally. The names start with a and go through z and root is tried hundreds of times. The IP traffic is from foreign sources or ISPs. (yes telnet is off) I only allow two users SSH access in the sshd_config AllowUsers and disallow root ssh altogether. Can I restrict ssh access to specific IP ranges? What is the syntax? Can I configure server to not allow ssh access for x# minutes after y# of failed attempts? Also is there anything else I should harden things up? Thanks,
<snip>
sshd:
Invalid Users:
Unknown Account: 3779 Time(s)
Authentication Failures:
unknown (61.108.35.250 ): 2181 Time(s)
unknown (ool-43570400.dyn.optonline.net ): 23 Time(s)
unknown (83.97.100.178 ): 1215 Time(s)
unknown (220.64.74.55 ): 107 Time(s)
unknown (222.96.154.133 ): 135 Time(s)
unknown (82-78-123-33.rdsnet.ro ): 3 Time(s)
unknown (82.78.123.33 ): 115 Time(s)
</snip>
<snip>
sshd:
Invalid Users:
Unknown Account: 3779 Time(s)
Authentication Failures:
unknown (61.108.35.250 ): 2181 Time(s)
unknown (ool-43570400.dyn.optonline.net ): 23 Time(s)
unknown (83.97.100.178 ): 1215 Time(s)
unknown (220.64.74.55 ): 107 Time(s)
unknown (222.96.154.133 ): 135 Time(s)
unknown (82-78-123-33.rdsnet.ro ): 3 Time(s)
unknown (82.78.123.33 ): 115 Time(s)
</snip>