How can I prevent a legitimate IP address from being blocked by DenyHosts?
Since it is quite possible for a user to mistype their password repeatedly it may be desirable to have DenyHosts prevent specific IP addresses from being added to /etc/hosts.deny. To address this issue, create a file named allowed-hosts in the WORK_DIR. Simply add an IP address, one per line. Any IP address that appears in this file will not be blocked. Additionally, as of v1.0.3, a valid hostname can also be placed in the allowed-hosts file. For each hostname appearing in this file, the IP address will be resolved and any ssh connections that match either this hostname or this resolved IP address will not be blocked. # this is a comment line # the following line prevents DenyHosts from blocking IP address 1.1.1.1 1.1.1.1 # The following lines prevent IP addresses 1.1.1.2 and 1.1.1.3 from being blocked 1.1.1.2 1.1.1.3 # # The first 3 parts of the IP address must be provided (eg. 1.2.3.) # The last part of the IP address can be a wildcard. # The wildcard can be given with an asterisk -o