Skip to content

sshd_config: enable legacy KEXs for Libgcrypt and WinCNG, drop workarounds - #2484

Closed
vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:brokencrypto
Closed

vszakats wants to merge 3 commits into
libssh2:masterfrom
vszakats:brokencrypto

Conversation

@vszakats

@vszakats vszakats commented Aug 2, 2026 •

Copy link
Copy Markdown
Member

Turns out this was the root cause of CI failures seen earlier, and then
worked around by reverting to older versions Docker and runner machines.

Replace/revert those workarounds by enabling the necessary legacy bits
in the test OpenSSH server configuration.

Follow-up to 8be5716 #2174
Follow-up to 51f6259 #1720

@vszakats
vszakats marked this pull request as draft August 2, 2026 15:01
@vszakats vszakats changed the title CI: try making libgcrypt work with latest test server and runners sshd_config: enable legacy KEXs for Libgcrypt and WinCNG, drop workarounds Aug 2, 2026
@vszakats vszakats added the tests label Aug 2, 2026
@vszakats
vszakats marked this pull request as ready for review August 2, 2026 15:45
@vszakats vszakats closed this in 1d0b86a Aug 2, 2026
@vszakats
vszakats deleted the brokencrypto branch August 2, 2026 15:46
vszakats added a commit that referenced this pull request Sep 13, 2026
To help debugging issues.

Also:
- bump sshd LogLevel to DEBUG1, for essential details.
- bump command output buffer in `run_command_varg()`
- drop redundant condition in `run_command_varg()`
- replace `BUFSIZ` with literal sizes in `run_command_varg()`.

After this patch it's showing this in the CI log for the libgcrypt
fallout that previously needed a long time to diagnose:
```
61: ---- sshd log ----
61: No matching private key for certificate: /etc/ssh/ssh_host_mldsa44-ed25519_key-cert.pub
61: Server listening on 0.0.0.0 port 22.
61: Server listening on :: port 22.
61: debug1: sshd-session version OpenSSH_10.5, OpenSSL 3.6.3 9 Jun 2026
61: Connection from 172.17.0.1 port 51878 on 172.17.0.2 port 22 rdomain ""
61: debug1: sshd-auth version OpenSSH_10.5, OpenSSL 3.6.3 9 Jun 2026 [preauth]
61: debug1: list_hostkey_types: rsa-sha2-512,rsa-sha2-256,ssh-rsa,[email protected],
[email protected],[email protected],ecdsa-sha2-nistp256,
[email protected],ssh-ed25519,[email protected] [preauth]
61: debug1: Local version string SSH-2.0-OpenSSH_10.5p1 Debian-1 [preauth]
61: debug1: Remote protocol version 2.0, remote software version libssh2_1.11.2_DEV [preauth]
61: debug1: compat_banner: no match: libssh2_1.11.2_DEV [preauth]
61: debug1: SSH2_MSG_KEXINIT sent [preauth]
61: debug1: SSH2_MSG_KEXINIT received [preauth]
61: debug1: kex: algorithm: (no match) [preauth]
61: Unable to negotiate with 172.17.0.1 port 51878: no matching key exchange method found.
Their offer: diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,
diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,
diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,ext-info-c,
[email protected] [preauth]
[...]
61: ------------------
```

Follow-up to 1d0b86a #2484
Follow-up to 8be5716 #2174
Follow-up to 51f6259 #1720

Closes #2621
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant