Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty data to SSH_MSG_IGNORE messages #974

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hpoettker
Copy link
Contributor

@hpoettker hpoettker commented Jan 1, 2025

Resolves #967.

The PR adjusts the Heartbeater such that it sends empty data, i.e. a length information of 0, with its SSH_MSG_IGNORE message.

Basically anything could be sent as data. Alternatively, random bytes could be sent, or a constant string like e.g. Apache Mina SSHD does: https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractConnectionService.java#L89

As required by RFC 4253 Section 11.2, and RFC 4251 Section 5
@hpoettker hpoettker requested a review from hierynomus as a code owner January 1, 2025 18:27
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_MSG_IGNORE have no data string.
1 participant