#220662 ssh no longer takes into account the KeepAlive option

#220662#5
Date:
2003-11-14 00:25:24 UTC
From:
To:
I have in my .ssh/config:

KeepAlive no

However when the Internet connection is down for a few seconds,
my ssh sessions are closed. A "ssh -v" shows the following line,
which is periodically output:

debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1

#220662#10
Date:
2004-06-30 01:21:23 UTC
From:
To:
Hi.
	The "KeepAlive" directive (now known as TCPKeepAlive in 3.8) controls
only the use of SO_KEEPALIVE socket option, which enables or disables
the system-wide TCP keepalive timer per connection.

	In addition to that, sshd has an application-level keepalive,
controlled by ClientAliveInterval and ClientAliveCountMax.  It is these
that generate the "keepalive@openssh.com" messages and these that you
need to change in your case, (in addition to KeepAlive).

	Later versions (3.8 and up) also have the client-side equivalent
(ServerAliveInterval and ServerAliveCountMax).

#220662#15
Date:
2022-06-24 10:44:20 UTC
From:
To:
Let's close this very old bug. Since then I've also used
ServerAliveInterval and ServerAliveCountMax, and AFAIK, I
couldn't reproduce this issue any longer despite occasional
unstable Internet connections.