
Originally Posted by
LuAn
This morning I got a particularly good example of what I am wanting to stop:
My Logwatch report this morning tells me that there were 16721 failed attempts to SSH into one of my servers in the last 24 hours. 14179 were from a server in France that I've never seen before and 14161 of the attempts from that server were to log in as root.
They are all bouncing off. root is not allowed to log into my server with SSH. In fact there is only one user allowed in with SSH and that's a special user with a name that looks like a password (it's a random mix of numbers and letters). It'd take you a hundred years to guess the user name, another hundred to guess the password, and another hundred to guess the password to su to a user who had rights to actually do anything.
Something like denyhosts would have reduced the number of attempts but there would still have been a heck of a lot before it took action. On the other hand, port knocking, if I had it in place, would have blocked every single one of them.