[Bug 3803] New: Connections not kept alive with ServerAliveInterval
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Mar 21 23:54:59 AEDT 2025
https://bugzilla.mindrot.org/show_bug.cgi?id=3803
Bug ID: 3803
Summary: Connections not kept alive with ServerAliveInterval
Product: Portable OpenSSH
Version: 9.8p1
Hardware: 68k
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: sshd
Assignee: unassigned-bugs at mindrot.org
Reporter: chiragc204 at gmail.com
Hi,
After openssh 9.2, it is recommended to use ChannelTimeout and
UnusedConnectionTimeout that provide granular idle session/connection
timeout and behaviour of ClientAliveCountMax=0 parameter was changed
which did not timeout the idle session.
Reference bug : https://bugzilla.mindrot.org/show_bug.cgi?id=3172
Commit which disables connection killing on ClientAliveCountMax 0 ,
https://github.com/openssh/openssh-portable/commit/69334996ae203c51c70bf01d414c918a44618f8e
Earlier before openssh 8.2 configuring ClientAliveCountMax 0 did
timeout the idle connection but to keep the connection alive client can
pass ServerAliveIntervalbecause it sends the keepalive packet regularly
from the client
example : ssh -p 2222 root at 10.x.x.x -o ServerAliveInterval=25s
Now i have configured ChannelTimeout and UnusuedConnectionTimeout in
sshd but doing ssh with serveraliveinteral passed from client does not
keep the connection alive
ChannelTimeout *=1m
UnusedConnectionTimeout 1m
If ServerAliveInternal is not working to keep the idle connection alive
, please help with another configuration that the client can use
provided the server users ChannelTimeout and UnusuedConnectionTimeout
to keep the connection alive if needed
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list