[Bug 4066] New: "ChannelTimeout" in combination with "ClientAliveInterval"

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Nov 25 01:12:21 AEDT 2026


https://bugzilla.mindrot.org/show_bug.cgi?id=4066

            Bug ID: 4066
           Summary: "ChannelTimeout" in combination with
                    "ClientAliveInterval"
           Product: Portable OpenSSH
           Version: 10.0p2
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: ft at x-net.at

Hi

I'm on debian 13 with OpenSSH_10.0p2 Debian-7+deb13u4, OpenSSL 3.5.9 29
Sep 2026
I try to setup a server which disconnects idle users after some time
(in this test case 60 seconds).

I used two test configs with the following options
Config 1:
ChannelTimeout *=60
UnusedConnectionTimeout 60
ClientAliveInterval 15
ClientAliveCountMax 4


Config 2:
ChannelTimeout *=60
UnusedConnectionTimeout 60
ClientAliveInterval 300
ClientAliveCountMax 4


With "config 1" my ssh client gets never disconnected.
With "config 2" my ssh client gets disconnected after 60 seconds.

I think now that "ChannelTimeout" does not ignore keep-alive packets.
But many sources I found say or imply that "ChannelTimeout" should
ignore keep-alive packets and the timer should only reset if "real"
data goes across the line.

I have not found a final answer to this so I ask it here.
Should "ChannelTimeout" ignore keep-alive packets and disconnect my
client after 60 seconds (is the current behaviour with "config 1" a
bug)?

If this is not a bug what is the idea behind the "ChannelTimeout"
option?
If the network connection breaks "ClientAliveInterval" and
"ClientAliveCountMax" kick in -> no extra "ChannelTimeout" option
needed.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list