ssh connection randomly times out
Darren Tucker
dtucker at dtucker.net
Sat Sep 19 07:18:10 AEST 2026
On Fri, 18 Sept 2026 at 15:12, James Moe via openssh-unix-dev
<openssh-unix-dev at mindrot.org> wrote:
> On 2026-09-18 12:41, Brian Candler wrote:
> >> I establish a connection to a remote host. After some random length of time
> >> (minutes, hours), the connection becomes unresponsive.
> > Idle time, or active time?
>
> Idle time.
In that case it's very likely to be a timeout of a state table in a
firewall or NAT device. You should see the increasing Send-Q I
described earlier, and setting ServerAlive* on the server, or
ClientAlive* on the server will likely mitigate it.
--
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list