Skip to content

GH-709: Handle keep-alive channel messages sent by an old OpenSSH server#710

Merged
tomaswolf merged 1 commit into
apache:masterfrom
tomaswolf:gh-709
Mar 26, 2025
Merged

GH-709: Handle keep-alive channel messages sent by an old OpenSSH server#710
tomaswolf merged 1 commit into
apache:masterfrom
tomaswolf:gh-709

Conversation

@tomaswolf
Copy link
Copy Markdown
Member

OpenSSH < 5.1p1 (from 2008!) does not handle a success reply and then disconnects after a few keepalives. It really needs a failure reply. Since 5.1p1, OpenSSH can handle both failure and success replies to its keepalive channel messages.

Always return a failure reply if the request is "keepalive@openssh.com".

Fixes #709.

…SH server

OpenSSH < 5.1p1 (from 2008!) does not handle a success reply and then
disconnects after a few keepalives. It really needs a failure reply.
Since 5.1p1, OpenSSH can handle both failure and success replies to
its keepalive channel messages.

Always return a failure reply if the request is "keepalive@openssh.com".
@tomaswolf tomaswolf merged commit 8dc354f into apache:master Mar 26, 2025
@tomaswolf tomaswolf deleted the gh-709 branch March 26, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSH client disconnects from older OpenSSH servers due to Keepalive

1 participant