Denyhosts: Add IP to whitelist

Bschelst/ August 7, 2017/ Linux/ 0 comments

Create a file ‘allowed-hosts’ in the ‘work_dir’ (can be found in the denyhosts.conf file), which isĀ /var/lib/denyhosts on Ubuntu, containing the ip.
See the example below:

cat <> /var/lib/denyhosts/allowed-hosts 
192.168.1.2 
192.168.1.4 
EOF  
Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

*
*