I am trying to unblock an IP from which I was doing some tests. I have followed the tutorials on the net:
$ sudo /etc/init.d/denyhosts stop
$ sudo vim /etc/deny.
If instructions above didn't help maybe denyhosts added IP to iptables firewall.
iptables -L -n -v | grep xxx.xxx.xxx.xxx
If you see something like that:
0 0 DROP all -- * * xxx.xxx.xxx.xxx 0.0.0.0/0
Remove required IP from firewall:
iptables -D INPUT -s xxx.xxx.xxx.xxx -j DROP
And restart networking to apply changes:
/etc/init.d/networking restart
Here's what worked for me on CentOS 6.7
./daemon-control stop
/etc/hosts.deny
/usr/share/denyhosts/data/hosts
/usr/share/denyhosts/data/hosts-restricted
/usr/share/denyhosts/data/hosts-root
/usr/share/denyhosts/data/hosts-valid
/usr/share/denyhosts/data/users-hosts
/usr/share/denyhosts/data/allowed-hosts
. This file simply expects one IP per line. Any IP address that appears in this file will not be blocked../daemon-control start
The instructions to remove an entry for denyhosts can be found here: http://www.cyberciti.biz/faq/linux-unix-delete-remove-ip-address-that-denyhosts-blocked/. In Ubuntu the denyhosts data files are located at /var/lib/denyhosts
.
/var/log/auth.log
It may give you clues to what your problem is.I had problems myself because I had a location saved in Dolphin on KDE to my sever using sftp. Dolphin uses your current username to try logging in which was getting my IP added to the hosts.deny file.