SSH connections through Cisco's PIX and ASA boxes need a more "robust" keepalive feature. This is probably an issue with other networking equipment also. Connections are being detected as "idle" even though sshd and ssh client keepalive is enabled with all current versions. Currently keepalive is not keeping the connection alive :-o
Are you using ClientAliveInverval and ClientAliveCountMax (on the server side) or ServerAliveInterval and ClientAliveCountMax (on the client side)? TCPKeepAlive enables the the system-wide TCP keepalive timer on the connection, but that is usually not frequent enough to help with NAT timeouts and the like (~2 hours in many cases).
Thanks Darren. I now have in my client config: ServerAliveInterval 15 ServerAliveCountMax 10 And on my server: ClientAliveInterval 15 ClientAliveCountMax 10 This works and my ssh sessions are no-longer disconnected by the Cisco ASA firewall.
You're welcome. Either of ClientAlive* or ServerAlive* is enough to keep your NAT table state fresh, you don't need both (but it's pretty much harmless to have both).
Close resolved bugs after release.