Secured SSH by checking failed logins

Posted by Doomshammer on Saturday, July 2. 2005 at 15:11 in Arbeit, English only, Linux/Unix

I hate these script kiddies who try to brute-force my servers via ssh.
So I setup a little script which checks the log file for failed login tries. If it sees more than $x failed logins from the same IP it blocks the IP for $time.

Also I get a little mail like this:

QUOTE:
From: myserver@neessen.net
To: who.cares@neessen.net
Subject: 4 Fehlerhafte Loginversuche - IP geblockt
Date: Sat, 2 Jul 2005 15:11:01 +0200

Der Host: xxx-xxx-xxx-xxx-xx.xxx.de
wurde auf Grund zu vieler fehlerhafter Anmeldeversuche vom System geblockt.

Funny shit, huh? ;-)






Trackbacks

No Trackbacks




Comments
Display comments as (Linear | Threaded)

*You're damn right! They just churn out useless traffic and decelerate the net. I think we should treat them like spammers - send them very slow and painful to hell!!!11

By the way: It would be great, if you could publish your shellscripts on a seperate website. This should be very useful for hobby-administrators like me ;-)
#1 xenobyte (Homepage) on 2005-07-04 11:01 (Reply)
*If I'll find some time for it, I'll publish my whole/holy shit somewhere ;-)
#1.1 Doomshammer (Homepage) on 2005-07-04 12:56 (Reply)
*Richte einfach nen anonymous ftp zugang ein :>
#1.1.1 Thilo (Homepage) on 2005-07-04 20:26 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
BBCode format allowed
You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.
Pavatar/Gravatar/Favatar/MyBlogLog/Pavatar author images supported.
 
 



Calendar

Back July '10 Forward
Mon Tue Wed Thu Fri Sat Sun
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24
26 27 28 29 30 31  

Quicksearch

Not for Sale!

This blog is not for sale!

Latest twitter

Latest Photos

Sun | Set

OutOf | MyHotel

Chic | ken!



Friend | Ship

Getaggte Artikel

Buttons

Ich bin ein Dokuleser
Get OpenSolaris
Gimme a Smile
neessen.net - Webhosting
I'm a blogger!
Lebst Du noch oder oarks Du schon?
last.fm
trnd - be trendy
I hear Metal
Visit GeoURL
Powered by Linux
Zsh lover
VIM! The Editor
Get Firefox
Ihr, nicht ich!
My amazon wishlist

BLOGROLL