SSH jump host silently dropping connections after OpenSSH 9.5
A recent OpenSSH 9.5 release tweaked how the server handles TCP keepalive packets. My jump host – a modest Ubuntu 24.04 box – started dropping established SSH sessions after a few minutes of idle time. The problem popped up during a routine audit when several users complained of “connection closed” messages, yet nothing appeared in the logs.
What changed in 9.5?
OpenSSH 9.5 introduced new defaults for ClientAliveInterval and ClientAliveCountMax on the server side: