seanism DOT com Random thoughts from the world of seanism

6Aug/110

CentOS 6

I noticed CentOS 6 is out.  I downloaded CentOS-6.0-i386-netinstall.iso.  So far it's working flawlessly with Virtualbox.

For those that don't have the netinstall URLs they are...

32 bit: http://mirror.centos.org/centos/6/os/i386/
64 bit: http://mirror.centos.org/centos/6/os/x86_64/

Tagged as: , , No Comments
10Apr/110

Remove an IP Address from denyhosts

I recently setup a VPS and installed Denyhosts.  I must have entered an incorrect password at some point cause I couldn't SSH into my server.  After removing my IP from /etc/hosts.deny I could log in once but after that I was added to the hosts.deny file again.

To completely remove an IP address from Denyhosts you'll need to...

  1. Stop DenyHosts - sudo /etc/init.d/denyhosts stop
  2. Remove the IP address from /etc/hosts.deny
  3. Edit /var/lib/denyhosts/hosts and remove the lines containing the IP address. Save the file.
  4. Edit /var/lib/denyhosts/hosts-restricted and remove the lines containing the IP address. Save the file.
  5. Edit /var/lib/denyhosts/hosts-root and remove the lines containing the IP address. Save the file.
  6. Edit /var/lib/denyhosts/hosts-valid and remove the lines containing the IP address. Save the file.
  7. Edit /var/lib/denyhosts/user-hosts and remove the lines containing the IP address. Save the file.
  8. (optional) Consider adding the IP address to /var/lib/denyhosts/allowed-hosts
  9. Start DenyHosts- sudo /etc/init.d/denyhosts start

http://denyhosts.sourceforge.net/faq.html#3_19