This how-to will explain how to setup DenyHosts on a RedHat-based (RHEL, CentOS, or Fedora) Linux server to automatically add remote IP addresses that repeatedly fail login attempts to your server’s /etc/hosts.deny file in an attempt to block SSH brute force/dictionary attacks.