[lug] 3 Questions: 1) Port Forwarding 2) Unison 3) Job Management Software 4) Test Apache

Nate Duehr nate at natetech.com
Wed Feb 16 17:21:31 MST 2005


[snipped lots of ssh scripting stuff..]

Hey guys, do you have SSH's "keepalive" feature turned on?  It might 
help a bit with dodgy connections -- at least it would cause ssh to 
error out and not completely hang, I think.

Doing a little Googling, it looks like some of the features below might 
be useful...

Something like :

KeepAlive yes
ClientAliveInterval 10
ClientAliveCountMax 999999

There's also:

ProtocolKeepAlives 0 (through 300)

Of course, you have to deal with TCP's own keepalives also... the timers 
for both interact with each other.  (Meaning that the above example is 
probably only part of the "story".)

Hope it helps... a little googling for ssh keepalives looks like hours 
of interesting reading... lots of people trying to do lots of weird things.

If nothing else, at least it'll keep the process table cleaned up on the 
server if enabled there, I bet.

Nate



More information about the LUG mailing list