I installed DenyHosts, which is a script intended to be run by Linux system administrators to help thwart SSH server attacks (also known as dictionary based attacks and brute force attacks).

It did not even finish installing and everyone connected to server got disconnected. I rebooted the server from the server control panel(Host).

I was able to webmin and other stuff like web and SSH from another IP using my phone's hotspot, but on my PC and other PCs at home I can't.

The package has been removed.

Now, how should I be able to SSH again from my PC?

up vote 2 down vote accepted

Edit /etc/hosts.deny, for example using

sudo nano /etc/hosts.deny

and remove the line with your IP address.

  • and make sure you restart/reload the sshd service after making the changes in hosts.deny – Mahesh Morankar May 17 '17 at 12:39

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.