Linode Forum Index Linode Forum
Linode Community Forums
 


putty keeps disconnecting!!

Click here to go to the original topic

 
       Linode Forum Index -> General Discussion
Author Message
mrm83



Joined: 01 Jan 2012
Posts: 7

Posted: Mon Jan 16, 2012 6:52 pm    Post subject: putty keeps disconnecting!!  

i keep getting disconnected with putty!!

after a few minutes or doing a few commands, it just disconnects!


on my osx terminal, i am not getting disconnects, but sometimes it gets very lagging when sshed in!

anyone know why or have a solution for me?
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Mon Jan 16, 2012 9:19 pm    Post subject:  

Are you behind a NAT? If so, it's possible the router is expiring "idle" connections too quickly. Your client might have an option to send keepalives every so often; this can sometimes help. (There's also an option in sshd's config, somewhere, I believe.)
Back to top  
mrm83



Joined: 01 Jan 2012
Posts: 7

Posted: Tue Jan 17, 2012 6:36 pm    Post subject:  

no, thats not it. this just started to happen like yesterday.
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Tue Jan 17, 2012 7:29 pm    Post subject:  

If you do packet captures (tcpdump, wireshark, etc) on both ends, do they see the same packets?
Back to top  
JFlame



Joined: 07 Nov 2011
Posts: 21

Posted: Wed Jan 18, 2012 1:11 pm    Post subject:  

I just went through this same issue, my post is on here somewhere. I never did figure out what causes the disconnects, but what fixes it is to turn on keepalives in Putty.

Go to the main connection tab, and select "Enable TCP keepalives". Also, set the "Seconds between keepalives" to 30. This fixed my issues, and I'm sure it will yours.
Back to top  
hybinet



Joined: 02 May 2008
Posts: 1058

Posted: Wed Jan 18, 2012 3:56 pm    Post subject: Re: putty keeps disconnecting!!  

mrm83 wrote: sometimes it gets very lagging when sshed in!
Is the server overloaded?
Back to top  
 
       Linode Forum Index -> General Discussion
Page 1 of 1