the mergy notes

hopefully some useful content, information, hacks, and solutions

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • About The Mergy Notes
  • Past Projects
    • FUF in Miraloma Park 2010
    • SF Canstruction 2011
  • The Fred Mergy Page
  • Posted Social Media Pics

Tag Archives: ssh Authentication Failures

May 23

Denyhosts is your friend to stop ssh login attempts

Posted on May 23, 2008 by mergy

Denyhosts

If you have a few linux servers that for whatever reason you have to leave open to ssh into on the standard port 22, denyhosts is a great way to get rid of the annoying daily logwatch email logs showing some losers somewhere have been spending all day doing a denial of service trying to brute-force attack their way in to ssh. Better ways are just to not even let ssh be accessible to non-legit IPs as well as disable ssh logins except for a couple of valid users, but in the case of mobile devices, locations, etc. you just sometimes need to have the ability to ssh into servers anywhere and other services might be dependent on the default port number, so changing it to get it out of the range of the script-kiddie or russian mafia is just not an option. It is one thing to have secure passwords, keys, etc. but just the fact they continue to bang on your servers can really rack-up bandwidth and annoyance.

Denyhosts is written in python and works with your logs to (based on your settings) inhibit attempts once thresholds you configure are met on login attempts. Really cool.

http://denyhosts.sourceforge.net

I have tested on ubuntu and centos and works great. The default configs are basically ready for centos/fedora/redhat out of the rpm or from source.

Posted in CentOS, Linux, Ubuntu | Tagged denial of service ssh, logwatch sshd failures, ssh Authentication Failures, ssh login attempts, sshd Authentication Failures, stop ssh attacks, stop ssh login attempts

Recent Pics

Best iOS Twitter client just got a huge update: Tweetbot http://mer.gy/xQ
No. The "stand-n-stuff" taco shells are *totally* authentic. Maybe not, but they are awesome.
No. The "stand-n-stuff" taco shells are *totally* authentic. Maybe not, but they are awesome.

My first entry in the Lick-Wilmerding Faculty ugly mug contest to repopulate the lounge. Gotta find 2 more ugly ones...
MacBook Air 1st gen battery the culprit on expansion.
MacBook Air 1st gen battery the culprit on expansion.

MacBook Air 1st gen battery the culprit on expansion.
MacBook Air 1st gen battery the culprit on expansion.
SRO for Diego Jameau performance. Here's 30 secs of "Imagine" #SFLWHS

Live performance of Haitian musician Diego Jameau in The Center at Lick-Wilmerding High School
Lick-Wilmerding Honors Physics telescope video streaming project coming along nicely (using Monsoon Multimedia Vulkano)
When a 1st gen MacBook Air overheats: Sort of like a Jiffy-Pop MacBook Air.

When a 1st gen MacBook Air overheats: Sort of like a Jiffy-Pop MacBook Air.
When a 1st gen MacBook Air overheats: Sort of like a Jiffy-Pop MacBook Air.
@traviswarren all fun here.

Recent tweets (@jmergy)

  •  

Follow me on Twitter

Categories

  • Apple
  • Art
  • Audio
  • Benefits
  • CalDAV
  • CentOS
  • Educational Software
  • FBReader
  • Garden
  • Hardware
  • Humor
  • Images
  • Independent School
  • Internet
  • iphone
  • ISTN
  • Kerio
  • LDAP
  • Lick-Wilmerding
  • Linux
  • Logic
  • Lost and Found
  • Mac OS X
  • Meniketti
  • Microsoft
  • Miraloma Park
  • Miraloma Park FUF
  • MS Office
  • OLPC XO
  • Palm Treo
  • Philosophy
  • Ruckus Wireless
  • San Francisco
  • Social Media
  • Software
  • SysAdmin
  • Tech Articles
  • Television
  • The Mergys
  • TiBook
  • Tivo
  • Twitter
  • Ubuntu
  • Uncategorized
  • Utilities
  • Video
  • Whipple Hill
  • Windows

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • September 2011
  • August 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • April 2009
  • February 2009
  • January 2009
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • June 2008
  • May 2008
  • April 2008
  • February 2008
  • January 2008
  • December 2007
© 2012 the mergy notes
Admired Theme