Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-08-2005, 12:16 PM   #1
Registered: Oct 2004
Distribution: Fedora, Debian, Free BSD
Posts: 71

Rep: Reputation: 15
Massive SSH Logins

Well i get this wierd log everyday on my web server


Authentication Failures:
root (x.x.x.x ): 237 Time(s)

SSHD Begins

Failed logins from these:
root/password from X.X.X.X: 237 Time(s)

Now i understand that someone is trying to exploit the buffer overflow exploit in SSHD, however i've got that patched. However this Login business is keeping me Nervy. Since the IP address changes everytime, i can't block it through IPTables.

I would like to block an IPAddress upon say 5 Unsuccesful Logins. Any ideas or any other suggestions would be very helpful.

Thanx in Advance
Old 03-08-2005, 12:49 PM   #2
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

Rep: Reputation: 33
Re: Massive SSH Logins

Originally posted by zeeshanhayat
I would like to block an IPAddress upon say 5 Unsuccesful Logins. Any ideas or any other suggestions would be very helpful.
I don't know how to do that, but if you know the IP addresses of the computers which need to ssh into your computer, you could do what I did. Simply block everything, and allow just those select IP addresses. You'd use the /etc/hosts.allow, and hosts.deny files to do that.
I only allow computers from my University, and my parent's computer, since those are the only ones I need. I used to get those all the time, before I did this. Now I'll occasionally get one blocked login attempt every couple of days, usually from somewhere in East/Southeast Asia.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i monitor SSH logins? gtwilliams Linux - Security 5 06-08-2005 10:43 PM
Restricting SSH logins. bullium Linux - Security 3 05-10-2005 01:15 AM
ssh logins not allowed - keyboard something student04 Linux - Networking 10 01-04-2005 04:03 AM
Need help using Webmin to tell SSH to allow logins Xolo Linux - Security 9 11-22-2004 03:57 PM
SSH and SCP user logins sopiaz57 Linux - Security 11 01-27-2004 09:38 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration