TCP KeepAlives do not keep the connection up;
in fact, they do exactly the opposite. They
allow the TCP/IP stack to detect dropped
connections much faster. KeepAlives will help
prevent the server from failing to notice
a connection drop.
On the other hand, KeepAlives will sometimes
detect a transient network outage as a connection
drop; and generate a spurious connection aborted
or connection reset error.
If you have problems with connections
dropping, I'd:
o Turn KeepAlives are off
o See if you can arrange for higher transmit timeouts
o See if you can arrange for higher retry counts
o Make sure your shell / system doesn't have an idle time out
Good luck,
- Joseph
> KeepAlive doesn't send any 'command' over ssh connection, but merely just
> enables keepalive socket option.
>
> It's then up to the TCP/IP stack to see that the connection is intact.
> (by sending packets with empty payload and checking ACK, as far as I
> know).
>
> Regards,
> Heikki Nousiainen
>
> On Thu, 15 Jun 2000, Tom DeSot wrote:
> > I've checked the archives and the man pages, but I don't see anywhere
how to
> > do this so I'm going to ask.
> >
> > I want to use Keep Alive to keep the sessions up, but I'd like for it
> > specifically to send an ls. How do I specify in the sshd_config file to
> > send specifically that command?
> >
> > Tom
>
>