[NBLUG/talk] ssh behind NAT

Steve srj at adnd.com
Wed Jul 23 13:05:02 PDT 2003


On Wed, Jul 23, 2003 at 09:51:52AM -0700, Eric Eisenhart wrote:
> On Wed, Jul 23, 2003 at 09:38:17AM -0700, 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?
> 
> On the server, in /etc/ssh/sshd_config, make sure "KeepAlive yes" is on (if
> you can) and on your end, in ~/.ssh/config, make sure "KeepAlive yes" is on.

THis worked, been connected for 4 hours so far with out a disconnect.. 
thanks

-Steve

-- 
----
      "Knowing others is wisdom, knowing your self is Enlightenment."
                                                   -- Lao-Tzu



More information about the talk mailing list