[NBLUG/talk] ssh behind NAT

Ross Thomas spamb8r at netscape.net
Wed Jul 23 09:52:01 PDT 2003


Steve wrote:
> I just put my home network behind a NAT Box (Linksys WiFI
> switch/router) and now my ssh clients if left open die.
> 
> I only read mail in my linux shell, so I like to keep my ssh session
> open all day and in my mail client (Mutt), but seems after an hour or so
> (not really sure how long) I come back and I'm disconnected.
> 
> This is not a shell time out, the connection just goes away.  I read
> somewhere that this does happen when behind a NAT box, and I thought I
> read about a fix for it, but I do not remember what it is, anyone know?

You may want to make sure that 'KeepAlive' is enabled in your
ssh[d]_config file.  This should alleviate the 'idle disconnect'
that the router is probably performing.  You could also try to
locate an 'idle disconnect' value on the router.  I'll see if
Linksys has an online manual.

HTH.

Ross.




More information about the talk mailing list