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

GH-434: skip unknown public keys from external sources #451

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

tomaswolf
Copy link
Member

Change Buffer.getPublicKey() to set the read position to after the key even if reading the key fails. This enables us to continue reading keys from a list of keys in a buffer even when a particular key cannot be decoded.

Change the two places where we receive lists of public keys from external sources: from an SSH agent or via the "hostkeys-00@openssh.com" extension. Skip and log keys that cannot be decoded.

Fixes #434.

Change Buffer.getPublicKey() to set the read position to after the key
even if reading the key fails. This enables us to continue reading keys
from a list of keys in a buffer even when a particular key cannot be
decoded.

Change the two places where we receive lists of public keys from
external sources: from an SSH agent or via the "hostkeys-00@openssh.com"
extension. Skip and log keys that cannot be decoded.
@tomaswolf tomaswolf merged commit 72acfbf into apache:master Jan 9, 2024
8 checks passed
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.

org.apache.sshd.client.global.OpenSshHostKeysHandler should ignore unsupported host keys
1 participant