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.
Just add the IP that should always have access to the file:
/etc/hosts.allow
That entry could look like:
ALL: 30.20.10.0/24
That way, even if it ends up in /etc/hosts.deny
as well, the IP will still have access.
Mind the ALL
before the IP, I see you forgot that with your echo
statement.
References: