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: sshd 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

Brought people that have never been up to Twin Peaks. Great day for it.
Trees in bloom. Early Feb. San Francisco.
Trees in bloom. Early Feb. San Francisco.

Gorgeous day in Upper Noe
Happy I can continue to make bread with our zojirushi bread maker and the Susan G. Komen affiliated yeast. #fb
Hatien Hut---> Great Vietnamese sandwich place near Lick-Wilmerding and CCSF

Workaround for students/alums with a single name in #WhippleHill Podium? Use a hyphen.
Just got off the phone with #WhippleHill support and asked for an enhancement request for handling single-named alums
Best one I have see from them in a long while--> Committees Demotivator® http://mer.gy/committees

Be Better at Twitter: The Definitive, Data-Driven Guide - The Atlantic http://mer.gy/wU #PresenceMaintenance
Sad but true--> in watching real-time Google Analytics for months now, Facebook generates a TON of referrals.
Toothpaste For Dinner today http://mer.gy/tfd013012 "Social Media Gurus"

Seen and heard on Fillmore St. blaring Micheal Jackson's "Wanna be startin' something" hilarious
Really think someone should make a PBR-branded laptop for the hipsters to match the standard Pabst hats
Using Campfire for an all-school advising group discussion today at Lick-Wilmerding

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