Categories
Linux

Denyhosts – Blocking your own IP

Stop the Denyhosts service

/etc/init.d/denyhosts stop

Remove your IP from the log file

vi /etc/hosts.deny

(Look for your IP then “dd” on the line to remove it, then “ZZ” to save and exit)

Check to see if your IP is in any other files

grep "82.68.113.238" /var/lib/denyhosts/*

Start the Denyhosts service again

/etc/init.d/denyhosts start

Adapted from the following post : DenyHosts: Remove / Delete an IP address