LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-25-2010, 02:44 PM   #1
RazielX
LQ Newbie
 
Registered: Sep 2004
Location: St. Louis, MO
Distribution: Ubuntu
Posts: 21

Rep: Reputation: 0
Question SSH Server Accepting Connections, and then Dropping Them


I did a clean install of OpenSuse 11.3 a couple of weekends back. Everything is working great except the SSH server. Once I installed ssh, it appears to accept my connection, allows me to log in, and then freezes Putty, not allowing me to type anything into the terminal. If I wait several minutes, I'll get a message saying that the connection was closed. After that, the server won't accept connections.

Sometimes it'll start accepting connections again, but after a while, the connection will close on its own. Other times, I will be unable to get a connection until I restart the server.

If you guys needs any more information, please let me know. What could be causing this odd behavior?
 
Old 10-25-2010, 03:53 PM   #2
Omnicronos
Member
 
Registered: Oct 2010
Location: N. VA
Distribution: Redhat, CentOS, Solaris
Posts: 40

Rep: Reputation: 12
Have you tried any other protocols like telnet, ftp/sftp, rpc, etc.? Are the issues you described unique to ssh?

Are there any errors or information in /var/log/messages related to ssh?
 
Old 10-25-2010, 09:16 PM   #3
RazielX
LQ Newbie
 
Registered: Sep 2004
Location: St. Louis, MO
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
I have not tried any other protocols. However, looking at /var/log/messages was most interesting.

It seems that there is an ip address that's very adamant on getting into my box, trying all sorts of usernames. I found another ip address that tried a couple of times, but this one has at least 25 attempts. Would it be possible that the ssh server is temporarily closing the connection due to the amount of unsuccessful login attempts?
 
Old 10-26-2010, 04:21 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
It is possible. To disable this pseudo-hacker, for every IP address you wish not allow to connect to your ssh, make:
Code:
iptables -A INPUT -s IP.FROM.LOG.FILE -j DROP
Or better, DROP every INPUT and FORWARD connection except these you needs. For more information read some firewall tutorials.
 
  


Reply



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
[SOLVED] Fedora Directory Server not accepting new connections custangro Linux - Enterprise 5 03-26-2012 04:11 PM
postfix server configured for TLS not accepting connections lxvor Linux - Software 2 08-19-2010 10:28 AM
RedHat Advance Server dropping Connections cyberknet Linux - Networking 1 02-24-2004 11:45 AM
VNC not accepting connections Red Squirrel Linux - Newbie 4 02-20-2004 08:55 PM
waiting for X server to begin accepting connections . redhat_zephyr Linux - Newbie 10 07-07-2003 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:36 AM.

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