I’ve been there. My friends have been there. Maybe you’re there right now. It’s easy to do. You work accesssing a number of different servers, one for your company’s git server, one for a deployment server, one for testing/ staging. Maybe you also have a peronsal git server & web server for your blog.
Accessing that many servers can get to be a mess, but thankfully ssh-keys often make that process better. Even so, you’ve probably either entered the wrong password or forgotten to add your key to ‘authorized_keys’ and locked yourself out of your server with denyhost.
I’ve done this a number of times, and have also had friends do it, and DenyHost can be tricky to unblock. Fortunately I found this nixCraft post that outlined how to remove myself (or my friend) from each file that DenyHost uses to block users.
Using that as I guide, I’ve made a simple tool that allows me to easily remove a given IP from the list of blocked addresses. It’s a rather basic
python script, but is super easy to use.
Check it out, it’s called Unblock.
It’s really basic, but it works well. If your friend gives you a shout ( since you still have access to the server he is blocked from), just have him email you his IP-Address, clone the repo and run the utility on the server. If you’ve locked yourself out of your personal server, you’ll have to login while physically present and clone the repo locally, or use your VPS’s web shell console (both linode and rackspace provide one by default) in order to get yourself back in.