LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2010, 08:14 PM   #1
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
ssh sessions disconnect. possible router problem?


Ive recently switched over to AT&T Uverse TV/Internet service and I've noticed that when I ssh into my linux( 2.6.18-194.3.1.el5xen CentOS) server I get disconnected. When I'm using putty it gives the "network error software caused connection abort" error. When I'm at work using one of our jump servers and ssh'ing from the command line it will freeze up from time to time but never disconnects. I think the problem is either with the OS or the new AT&T modem. At first I had my CentOS server using DHCP and it would disconnect within a few minutes after I ssh'ed. I switched over to a static IP and now it goes about 10 minutes before it disconnects. It doesnt matter if I'm actively typing or not, so it's not an inactivity issue. I have the firewall turned off on my laptop, and since the issue happens on multiple devices, including my iphone I dont think thats the issue. I have iptables and selinux turned off/disabled so thats not it. In putty I have enabled Keep Alive(30 seconds) and it still disconnects. I opened the port on the modem to allow ssh for the IP of the linux server.

Ive also recently reinstalled this server with CentOS so I can't compare with the previous internet provider as I didn't reinstall until after I switched over. BUT previous installs with CentOS 5.2 worked fine with the previous ISP.


AT&T Modem is a 2wire 3800HGV-B

Ive search all over the place and cant seem to fix the issue. Any other ideas?
 
Old 08-08-2010, 07:47 AM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
can you ssh locally through your home network? It may be an issue with your ISP not allowing the traffic... trying to log in through your lan will tell you if it's your server or not.
 
Old 08-08-2010, 02:31 PM   #3
rew
Member
 
Registered: May 2010
Posts: 36

Rep: Reputation: 3
A further means to debug this would be to start a tcpdump on the home-server, writing the output to a file. You can then examine the file with etherreal (or whatever it's called these days).
 
Old 08-08-2010, 03:45 PM   #4
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
^^ it disconnects if I try the local IP or the public IP or hostname.

^ hmm hadn't thought of that. I'll give it a try. Thanks.
 
Old 08-09-2010, 01:31 AM   #5
rew
Member
 
Registered: May 2010
Posts: 36

Rep: Reputation: 3
Whoa! Routers, ISPs are of course the most likely culprits of this problem, but it seems you have something local. Check the kernel log (type dmesg, or look in the /var/log/kern.log file) if there are any hints there.
 
Old 08-24-2010, 08:30 PM   #6
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
I had kind of forgotten about this because I've had other projects and hadn't needed to SSH into my server. So I SSH'ed in last night, same as before and it worked. So for shits and giggles I left the session connected overnight. When I woke up this morning the session was still open. Who knows. But for some weird reason it works. Thanks for the replies.
 
  


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
iwl4965 stops talking without disconnect from D-Link router SaintDanBert Linux - Networking 4 07-19-2010 06:59 PM
disconnect idle ssh sessions pinoyskull Linux - Newbie 19 03-02-2010 03:29 AM
is there a way to restrict ssh sessions to a specific ssh client? smbhat Linux - Networking 8 03-11-2009 07:36 AM
How to disconnect inactive ssh sessions ? sultf Linux - Newbie 3 02-04-2009 02:28 PM
Keep running a command when disconnect from SSH stuartornum Linux - General 3 02-17-2006 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:48 PM.

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