-
Notifications
You must be signed in to change notification settings - Fork 766
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
ssh-keyscan can choose unsupported KEX algorithm #2140
ssh-keyscan can choose unsupported KEX algorithm #2140
Comments
Having the same issue with |
#if defined(VARIABLE_LENGTH_ARRAYS) && defined(VARIABLE_DECLARATION_AFTER_CODE)
# define USE_SNTRUP761X25519 1
#endif But msvc does not support variable length arrays 😕 |
If it's not supported it should not be proposed? |
I came across this issue when testing 9.5p1. I suppose I'll just go back to using 8.1p1 which is bundled with Windows 10. |
4 months later... 9.5p1 has been bundled into the latest update for Windows 10. I think a lot more people will be seeing this bug now. |
Same here, have 9.5p1 now and my script that worked 2 days ago stopped working. |
Same here, anything newer than 9.5p1 appears to break. Had to manually rollback to 8.9p1 on multiple machines as newer versions are also broken :(
|
Also just bitten by this. Is there a way to restrict the KEX list at runtime using flags, or does this essentially break ssh-keyscan until the PR is merged and released? |
Yes, but the restriction has to be done via sshd, rather than ssh-keyscan as sshd_config has a |
Yeah, I figured out I could do that, but if I didn't control the sshd setup on the target server I would've been SOL. Thanks @tgauth for doing the patch on this 👏 - hoping we'll see a patch release asap. |
Prerequisites
Steps to reproduce
The ssh-keyscan.exe client application can propose unsupported KEX algorithms, notably [email protected]. The server (if it also supports sntrup) will also propose sntrup. However, ssh-keyscan.exe will then fail in choose_kex with the error:
choose_kex: unsupported KEX method [email protected]
That KEX algorithm requires a C99 compiler and is hidden behind a #if in defines.h.
ssh.exe and sshd.exe do not have this issue, because only supported KEX algorithms are proposed using the function match_filter_allowlist.
Client requirement: Win32-OpenSSH version 9.2 (a merge in 9.1 moved sntrup to the top of the preferred KEX list)
Server requirement: Linux (for enabled [email protected] support) OpenSSH version >=8.9 (where sntrup support was added)
ssh.exe -V
OpenSSH_for_Windows_9.2p1, LibreSSL 3.7.2
ssh-keyscan.exe -vvv ip
Expected behavior
ssh-keyscan.exe should not claim to support [email protected].
Actual behavior
Error details
Environment data
Version
9.2p1
Visuals
No response
The text was updated successfully, but these errors were encountered: