Vendor: OpenBSD · https://www.openssh.com/ · pkg:generic/openssh · Last reviewed 2026-12-05 · History
Summary
- Hybrid key exchange is the default: mlkem768x25519-sha256 is first in the list since 10.0, and sntrup761x25519-sha512 has been the default since 9.0.12
- The hybrid signature algorithm ssh-mldsa44-ed25519 is enabled from 10.6 for host keys, user keys and, from 10.6p2, CA signatures; keys of this type must be generated.3
- Classical key exchange can be disabled with
KexAlgorithms, and classical signatures withHostKeyAlgorithms,PubkeyAcceptedAlgorithmsandCASignatureAlgorithms.45 - The client warns since 10.1, and the server logs since 10.6, when a connection does not use post-quantum key agreement.63
- All post-quantum algorithms in OpenSSH are hybrid; no pure post-quantum algorithm is offered (checked 2026-12-05).
To allow only hybrid key exchange, set
KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.cominssh_configorsshd_config.45
OpenBSD -current prefers the hybrid signature by default and adds
ssh-mldsa87-p384, but neither is in any OpenSSH release (checked 2026-12-05).78
Cryptographic operations
- Key exchange: the client’s preference order decides.45 Default list in
sshandsshd; the first two entries are hybrid (ML-KEM-768 or Streamlined NTRU Prime 761, each with X25519), the rest classical:45
mlkem768x25519-sha256,
sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,
curve25519-sha256,curve25519-sha256@libssh.org,
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
diffie-hellman-group-exchange-sha256,
diffie-hellman-group16-sha512,
diffie-hellman-group18-sha512,
diffie-hellman-group14-sha256
sshdalso supportsmlkem768nistp256-sha256, not in the default list.5- Host keys: default
HostKeyAlgorithmshas Ed25519, ECDSA (P-256, P-384, P-521), RSA with SHA-2, security-key variants, andssh-mldsa44-ed25519last; a server uses it only with a host key of that type.45 - User keys: governed by
PubkeyAcceptedAlgorithms; DSA keys are removed as of 10.0.2 - Certificates: default
CASignatureAlgorithmsisssh-ed25519, the three ECDSA curves, the two security-key types,rsa-sha2-512,rsa-sha2-256andssh-mldsa44-ed25519.45
Versions
| Change | Version | Date | Package URL | Source |
|---|---|---|---|---|
sntrup761x25519-sha512@openssh.com added to the default list |
8.9 | 2022-02-23 | pkg:generic/openssh@8.9p1 |
1 |
sntrup761x25519-sha512@openssh.com becomes the default |
9.0 | 2022-04-08 | pkg:generic/openssh@9.0p1 |
1 |
mlkem768x25519-sha256 added, available by default; sntrup761 gains the name sntrup761x25519-sha512 |
9.9 | 2024-09-19 | pkg:generic/openssh@9.9p1 |
9 |
mlkem768x25519-sha256 becomes the default; DSA removed |
10.0 | 2025-04-09 | pkg:generic/openssh@10.0p2 |
2 |
Client warns on non-post-quantum key agreement (WarnWeakCrypto); experimental XMSS keys removed |
10.1 | 2025-10-06 | pkg:generic/openssh@10.1p1 |
6 |
| Experimental ML-DSA-44 and Ed25519 composite signature, not enabled by default | 10.4 | 2026-07-06 | pkg:generic/openssh@10.4p1 |
10 |
ssh-mldsa44-ed25519 enabled; WarnWeakCrypto added to sshd |
10.6 | 2026-10-06 | pkg:generic/openssh@10.6p1 |
3 |
ssh-mldsa44-ed25519 allowed as a CA signature algorithm |
10.6p2 | 2026-11-05 | pkg:generic/openssh@10.6p2 |
3 |
- 10.0 notes: “the hybrid post-quantum algorithm mlkem768x25519-sha256 is now used by default for key agreement.”2
- 10.6 notes: the algorithm “no longer uses the “@openssh.com” vendor extension suffix that the previous experimental implementation used. Keys generated with the previous experimental support must be regenerated and/or removed.”3
Configuration
Enabling PQC
- Key exchange needs no configuration from 9.0. On 8.9 the hybrid is listed but not preferred; in
ssh_config:
KexAlgorithms ^sntrup761x25519-sha512@openssh.com
- Hybrid signature (10.6 or later): generate a key,10 add it as a
HostKeyinsshd_config,5 and add the public key toauthorized_keys.
ssh-keygen -t mldsa44-ed25519
Disabling classical algorithms
There is no single switch. Replace each list with hybrid-only entries; a list starting with - removes the named algorithms from the default.45 Peers supporting none of the listed algorithms cannot connect.
Signatures, on 10.6 or later:
HostKeyAlgorithms ssh-mldsa44-ed25519-cert,ssh-mldsa44-ed25519
PubkeyAcceptedAlgorithms ssh-mldsa44-ed25519-cert,ssh-mldsa44-ed25519
CASignatureAlgorithms ssh-mldsa44-ed25519
WarnWeakCrypto only controls the warning and is on by default; WarnWeakCrypto no-pq-kex turns off the post-quantum key exchange warning and WarnWeakCrypto no all such warnings.45
Open work
In OpenBSD -current only, not in any release; newest release is 10.6p2 (checked 2026-12-05).
- 2026-12-03:
ssh-keygengenerates ECDSA NIST P-384 keys by default: “switch default key type generated to ECDSA NISTP384”.11 - 2026-12-03: default signature preference changes “to prefer ML-DSA 44/ed25519 hybrid followed by ECDSA NISTP384”.7
- 2026-12-04: “composite ML-DSA 87 / ECDSA p384 signatures based on draft-ietf-sshm-composite-sigs-01 as "ssh-mldsa87-p384" with the corresponding "ssh-mldsa87-p384-cert" certificate type”, “Not yet enabled by default.”8
- The OpenBSD Journal summarised these on 2026-12-05.12
Distributions
Checked 2026-12-05; backports may not change the version number. The last two columns are derived from the upstream version, not distribution documentation.
| Distribution | OpenSSH | Hybrid key exchange default | ssh-mldsa44-ed25519 |
Source |
|---|---|---|---|---|
| Debian 12 (bookworm) | 9.2p1 | sntrup761 | no | 13 |
| Debian 13 (trixie) | 10.0p1 | mlkem768 | no | 14 |
| Ubuntu 22.04 (jammy) | 8.9p1 | no (listed, not preferred) | no | 15 |
| Ubuntu 24.04 (noble) | 9.6p1 | sntrup761 | no | 16 |
| Ubuntu 26.04 (resolute) | 10.2p1 | mlkem768 | no | 17 |
| Alpine 3.25 | 10.6p2 | mlkem768 | yes | 18 |
References
-
OpenSSH release notes, 8.9 (2022-02-23) and 9.0 (2022-04-08). https://www.openssh.org/releasenotes.html#9.0 (accessed 2026-12-05) ↩ ↩2 ↩3
-
OpenSSH release notes, 10.0 (2025-04-09). https://www.openssh.org/releasenotes.html#10.0 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4
-
OpenSSH release notes, 10.6 (2026-10-06) and 10.6p2 (2026-11-05). https://www.openssh.org/releasenotes.html#10.6 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6
-
ssh_config(5), OpenBSD manual pages. https://man.openbsd.org/ssh_config.5 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
-
sshd_config(5), OpenBSD manual pages. https://man.openbsd.org/sshd_config.5 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
-
OpenSSH release notes, 10.1 (2025-10-06). https://www.openssh.org/releasenotes.html#10.1 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4
-
OpenBSD CVS commit by Damien Miller,
myproposal.h, 2026-12-03. https://marc.info/?l=openbsd-cvs&m=179629067868097&w=2 (accessed 2026-12-05) ↩ ↩2 -
OpenBSD CVS commit by Damien Miller, composite ML-DSA 87 / ECDSA P-384 signatures, 2026-12-04. https://marc.info/?l=openbsd-cvs&m=179643138352662&w=2 (accessed 2026-12-05) ↩ ↩2
-
OpenSSH release notes, 9.9 (2024-09-19). https://www.openssh.org/releasenotes.html#9.9 (accessed 2026-12-05) ↩
-
OpenSSH release notes, 10.4 (2026-07-06). https://www.openssh.org/releasenotes.html#10.4 (accessed 2026-12-05) ↩ ↩2 ↩3
-
OpenBSD CVS commit by Damien Miller,
ssh-keygen.c, 2026-12-03. https://marc.info/?l=openbsd-cvs&m=179629061268047&w=2 (accessed 2026-12-05) ↩ -
OpenBSD Journal, “Cryptography changes in OpenSSH (in OpenBSD -current)”, 2026-12-05. https://www.undeadly.org/cgi?action=article;sid=20261205121940 (accessed 2026-12-05) ↩
-
Debian package openssh-client in bookworm. https://packages.debian.org/bookworm/openssh-client (accessed 2026-12-05) ↩
-
Debian package openssh-client in trixie. https://packages.debian.org/trixie/openssh-client (accessed 2026-12-05) ↩
-
Ubuntu package openssh-client in jammy. https://packages.ubuntu.com/jammy/openssh-client (accessed 2026-12-05) ↩
-
Ubuntu package openssh-client in noble. https://packages.ubuntu.com/noble/openssh-client (accessed 2026-12-05) ↩
-
Ubuntu package openssh-client in resolute. https://packages.ubuntu.com/resolute/openssh-client (accessed 2026-12-05) ↩
-
Alpine package openssh, branch v3.25. https://pkgs.alpinelinux.org/packages?name=openssh&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩