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

Fix SSH prompt parser for some variants #13055

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Conversation

sergiou87
Copy link
Member

Closes #13050

Description

This PR relaxes the regex used to parse the SSH prompt for unknown host key fingerprints in order to support different prompt variants. According to https://github.com/openssh/openssh-portable/blob/53237ac789183946dac6dcb8838bc3b6b9b43be1/sshconnect.c#L1136the prompt might include certain info we didn't take into account, so this PR…

  1. Stops parsing beyond the fingerprint
  2. Ignores whatever is between established and the next .

Release notes

Notes: no-notes

This will support small changes in the prompt, like the lack of the `[fingerprint]` option, or when a key of different type is available for that host.
Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ Looks good!

@sergiou87 sergiou87 merged commit 23c3050 into development Oct 1, 2021
@sergiou87 sergiou87 deleted the more-ssh-promp-fixes branch October 1, 2021 13:54
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 prompts not showing up on Windows
2 participants