Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 23, 2004 7:53 pm 
Offline
Newbie

Joined: Wed Sep 08, 2004 3:22 pm
Posts: 2
Website: http://www.mattkrause.net
WLM: me@mattkrause.net
Yahoo Messenger: GT3NE1
AOL: GT3NE1
Location: SoCAL
I have submitted two tickets, one also via email and have not heard anything back yet.

My SSH connection keeps dying on me and I am trying to get help. It is setup right, but sometimes the connection last for hours, and sometimes it dies after a few minutes leaving open sshd and bash process and it is getting more annoying and worse by the day.

Any ideas?


Top
   
 Post subject:
PostPosted: Thu Sep 23, 2004 8:33 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
I've replied to both of your tickets. Ticket #1 basically says I have no ideas to the problem you've outlined above, and ticket #2 I just had a Linode 96 open up today - so you're next in line for the upgrade, which is now configured.

Regarding the ssh problems, are these with idle ssh connections? Which distro? Have you upgraded sshd? What about keepalive in your sshd config? Have you done traceroutes at the times there are problems?

What about this thread which talks about idle ssh sessions timing out?:

http://www.linode.com/forums/viewtopic.php?p=1921#1921

Thanks!
-Chris


Top
   
 Post subject:
PostPosted: Fri Sep 24, 2004 10:20 am 
Offline
Senior Member

Joined: Sun Mar 14, 2004 9:18 pm
Posts: 116
Website: http://michael.susens-schurter.com/
WLM: mschurter@yahoo.com
Yahoo Messenger: mschurter
Location: Peoria, IL
I had a similar problem when using PuTTY on Windows to SSH into my Linode. Instead of messing around with my kernel, I just set Putty to send keepalives every 8 seconds.
You can do this in the Connection category.


Top
   
 Post subject:
PostPosted: Sat Sep 25, 2004 12:43 am 
Offline
Senior Newbie

Joined: Tue Jul 20, 2004 5:07 am
Posts: 14
This used to happen to me as well, and it turned out to be a router setting which needed to be changed (IP Masquerade timer).

Good luck.


Top
   
 Post subject:
PostPosted: Fri Oct 01, 2004 12:48 pm 
Offline
Senior Newbie

Joined: Fri Oct 01, 2004 12:44 pm
Posts: 7
I fixed this by going into /etc/ssh/sshd_config and setting:
Code:
ClientAliveInterval 120


Top
   
 Post subject:
PostPosted: Fri Oct 01, 2004 1:13 pm 
Offline
Senior Newbie

Joined: Tue Mar 02, 2004 6:42 pm
Posts: 6
I have a similar problem with mine, but I've just been living with it for the moment (on Gentoo). I get disconnects when I either paste in about 10-100 lines (it varies) or whilst doing either an "emerge world" or "emerge sync". Normaly the disconnect happens whilst the SSH is "busy" doing something.

It happens to me on other UMLs I have so I dont think my specific problem is Linode related. Doing the same thing on a non-UML machine doesnt have the same problem.. but other than that I havnt been able to find anything more specific as yet.


Top
   
 Post subject:
PostPosted: Mon Oct 04, 2004 4:44 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
I haven't had this issue on my Gentoo Linode during 'emerge sync' or 'emerge world'... I've had problems with PuTTY before on really bad client side wireless connections in general with any server though.


Top
   
 Post subject:
PostPosted: Sun Oct 10, 2004 8:44 am 
Offline
Senior Member

Joined: Wed Jan 07, 2004 5:54 am
Posts: 71
This started to happen to me also, in the last days.

My Linode runs Debian stable, and I have "KeepAlive yes" in sshd_config.
The box from which I ssh runs Debian unstable.

As mentioned in the thread pointed by caker, I think the problem is this:

Code:
# cat /proc/sys/net/ipv4/tcp_keepalive_time 
7200


Quite high. I have changed it now, and will see if it fixes the problem.

jp


Top
   
 Post subject:
PostPosted: Mon Oct 11, 2004 6:57 am 
Offline
Senior Member

Joined: Wed Jan 07, 2004 5:54 am
Posts: 71
Well, it didn't work:

Code:
# cat /proc/sys/net/ipv4/tcp_keepalive_time 
1500


Code:
# grep keepalive /etc/sysctl.conf 
net.ipv4.tcp_keepalive = 1500


Code:
# grep live /etc/ssh/sshd_config 
KeepAlive yes
ClientAliveInterval 120


I restarted ssh after doing those changes, and sessions still die after some time.

One interesting thing: this only started happening after I switched to a 2.6 kernel (as caker suggested in another thread: http://www.linode.com/forums/viewtopic.php?t=1210)

jp


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group