• Pingback: How to Set Up VNC from Windows to Fedora 14 Over the Internet | Steve Jenkins' Blog()

  • John

    Great article for a beginner like me. Could you do an article (if it’s possible) on how to use Denyhosts in conjunction with vsftpd?

  • Great Writeup. Matches my advice almost exactly.

  • James Butler

    I have some custom scripts on RHEL 5 servers and Fedora 14 that run every 5 minutes, they parse the secure log files and harvest ip addresses from any line that says ‘login failed for user…’, which is a failed ssh login attempt. Keeps a unique list of ip addresses and runs another script that resets iptables with any new ip addresses that is harvested from my other script and blocks them in iptables.
    Works like a charm, although it would block a normal users failed login after one time but I wanted this to happen because I don’t know if a normal user or a hacker was using the users login name when it failed. I don’t have that many users so this really isn’t a problem for me, but I may try this denyhosts and see how that works out.

  • Very Nice !!!
    Useful info for all beginners!!!

    Thank you!

  • Will this configuration work for Fedora 17 also?

    • amazingant

      Few months late, but yes, this configuration works well for me on F17. Only thing of note is that instead of using the chkconfig command to enable the service and the service command to start it, you use “systemctl enable denyhosts.service” to enable it and “systemctl start denyhosts.service” to run it. I think they moved to systemctl in F16, but I could be wrong; I’ve only been using it for a few months now.

      In response to the article, thanks! Works great, and kept me from having to figure out how to set up some complex script myself. Will save that for another day after I’ve learned a little python or ruby or such.

  • Pingback: How to Install DenyHosts to Block SSH Attacks on RHEL / CentOS / Fedora - It gnev()