You are viewing a read-only archive of the Blogs.Harvard network. Learn more.

FIX: SSH or telnet sessions timeout and drop connection on DSL or Cable modem behind NAT router

I use SSH for everything from tunnelling outbound mail in order to avoid port 25 blocks on the freenet providers (such as www.personaltelco.net) to simple terminal sessions.  Also, most all of the time I am hooked up via a DSL or Cable modem with a router in front of it playing NAT tricks to get me to the outside network.  After about an hour (sometimes less) the SSH just hangs; from a Mac OS X terminal session it’s just unresponsive and needs to be killed, whereas on PuTTY on Windows, once it realizes the connection is no good it pops up a “Network error: Software caused connection abort” message.  The problem seemed to be worse with DSL from Verizon and Qwest, and seemed to be very mild with AT&T/Comcast cable in Cambridge, 02138 (advice: in Cambridge, you can’t go wrong with the Comcast digital cable.  I was getting speeds of (I seem to remember) almost a megabyte per second down and could pull down entire ISOs in minutes; debian net install on an old p233 was disk i/o limited and not network limited by what I could tell.


Happily, the good people at DSL Reports (www.dslreports.com) have put together an FAQ on this subject including some specific configuration options and links to more info:


http://www.dslreports.com/faq/7792


More on this as I determine if it actually works.


Update: So far, so good; a thunderstorm passing through caused a brief power cycle and that definitely reset the connection, but it seemed to hold otherwise, for example during lunch.  The real test will be leaving terminal sessions overnight.


Update: While looking for info on a superficially related problem, I came across this slashdot thread:


http://slashdot.org/askslashdot/00/06/24/0622236.shtml


This may also provide some assistance to seekers of info on this topic.  However! importantly, you should also examine the lengthy parenthetical in http://blogs.law.harvard.edu/rlucas/2003/11/17#a24 to determine if this is really your problem — the link to a TCP/IP theory page should help you as well.  This caveat is necessary because there are really two opposite problems that both manifest as “dropped ssh terminal sessions:” one, a NAT table on a cable/dsl router could be timing out (which argues for more frequently sending keepalive packets), or two, your connection could be flaking out briefly but coming back up fairly quickly (which argues against sending frequent keepalives).

FIX: SSH or telnet sessions timeout and drop connection on DSL or Cable modem behind NAT router …

3 Comments

  1. Brent O'Connor

    November 24, 2003 @ 5:33 pm

    1

    I tried all the methods mentioned on the DSL Reports website (http://www.dslreports.com/faq/7792). The only thing I could get to work was changing Putty’s setting for “Sending of null packets to keep session active” to 900 seconds or 15 minutes. I tried 1800 as recommend and that didn’t work.

  2. Sonta

    September 17, 2005 @ 10:09 am

    2

    Thank you for the info!

  3. knock off louis vuitton

    June 15, 2011 @ 2:45 am

    3

    To celebrate the 30th anniversary of Polo by Ralph Lauren, a new fragrance inspired by the vintage signature scent was created: Polo Modern Reserve is the new addition to the incomparable Polo tradition of classic scents.

Log in