Reset/Unblock/Unban ssh IP ban by denyhosts (openSuse 13.1)

March 2016

Problem description: Background Information: Solution used:
  1. Login to your computer either from the console or different IP address.
  2. Check the log file (as per DAEMON_LOG) for your host being denied:
    grep 'new denied hosts' /var/log/denyhosts | less
    Search for the date and time or IP to verify that you are actually banned.
  3. Stop denyhosts service and verify that it is stopped:
    systemctl status denyhosts.service
    systemctl stop denyhosts.service
    systemctl status denyhosts.service
  4. Remove your banned host (as per WORK_DIR) from /var/lib/denyhosts/hosts
    Make sure to remove your host by IP and also by name. The name and IP should be following lines.
  5. Remove your banned host from /etc/hosts.deny
    Make sure to remove your host by IP and also by name, including preceding comment lines. The name and IP should be following lines.
  6. Try to login from previously banned IP. It should now work.
  7. Start denyhosts service:
    systemctl stop denyhosts.service
    systemctl status denyhosts.service
  8. Try to login from previously banned IP. It should now work.
Links: