Block SSH Login Attempts On Ubuntu

If you run an ssh server on your Ubuntu system, and allow password based authentication, then you’ll want to install DenyHosts. It watches the log files and blocks the IP address of those who fail to authenticate too many time. As always, while this article is Ubuntu oriented, the same basic procedure works on other distros.

The first step to blocking the baddies with DenyHosts is installation: