ssh keep alive

H.S. hs.samix at gmail.com
Sun Nov 16 21:18:40 UTC 2008


John Masters wrote:
> This may not be the correct place to post this but I have run out of
> ideas.
> 
> On my iMac I have installed my favourite Linux distro Ubuntu Intrepid
> Ibex via VMWare Fusion. It works! End of story - almost.
> On the self same iMac I have ssh and sshd installed and the config files
> are, in all relevant respects, the same as those on Intrepid on VMWare. 
> 
> In both machines I can ssh-add my key and connect to my remote server
> (running Debian Etch). However, leaving the connection open causes the
> terminal to hang after exactly one hour on the iMac yet the connection
> stays up for days on the Virtual Ubuntu machine.
> 
> I have tried the Mac lists for an answer but no luck so am hoping for a
> pointer from the experts here.

I think you can avoid this using ServerAliveInterval option:
$> ssh -o ServerAliveInterval=60 username at remote.machine

which will, I think, keep sending some packets every 60 seconds to keep
the connection alive.

-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.





More information about the ubuntu-users mailing list