Skip to main content Link Menu Expand (external link) Document Search Copy Copied

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 with HostKeyAlgorithms, PubkeyAcceptedAlgorithms and CASignatureAlgorithms.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.com in ssh_config or sshd_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 ssh and sshd; 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
  • sshd also supports mlkem768nistp256-sha256, not in the default list.5
  • Host keys: default HostKeyAlgorithms has Ed25519, ECDSA (P-256, P-384, P-521), RSA with SHA-2, security-key variants, and ssh-mldsa44-ed25519 last; 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 CASignatureAlgorithms is ssh-ed25519, the three ECDSA curves, the two security-key types, rsa-sha2-512, rsa-sha2-256 and ssh-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 HostKey in sshd_config,5 and add the public key to authorized_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

Vendor commitments

  • 2025-10-06, 10.1 notes: “We expect to implement a new post-quantum signature scheme in the near future.”6 Met by experimental support in 10.4 and enabled in 10.6.103
  • 2025-10-06, 10.1 notes, on WarnWeakCrypto: “This option is likely to control additional weak crypto warnings in the future.”6 Open.

Open work

In OpenBSD -current only, not in any release; newest release is 10.6p2 (checked 2026-12-05).

  • 2026-12-03: ssh-keygen generates 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

  1. 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

  2. OpenSSH release notes, 10.0 (2025-04-09). https://www.openssh.org/releasenotes.html#10.0 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4

  3. 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

  4. ssh_config(5), OpenBSD manual pages. https://man.openbsd.org/ssh_config.5 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8

  5. 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

  6. OpenSSH release notes, 10.1 (2025-10-06). https://www.openssh.org/releasenotes.html#10.1 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4

  7. 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

  8. 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

  9. OpenSSH release notes, 9.9 (2024-09-19). https://www.openssh.org/releasenotes.html#9.9 (accessed 2026-12-05) ↩

  10. OpenSSH release notes, 10.4 (2026-07-06). https://www.openssh.org/releasenotes.html#10.4 (accessed 2026-12-05) ↩ ↩2 ↩3

  11. 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) ↩

  12. 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) ↩

  13. Debian package openssh-client in bookworm. https://packages.debian.org/bookworm/openssh-client (accessed 2026-12-05) ↩

  14. Debian package openssh-client in trixie. https://packages.debian.org/trixie/openssh-client (accessed 2026-12-05) ↩

  15. Ubuntu package openssh-client in jammy. https://packages.ubuntu.com/jammy/openssh-client (accessed 2026-12-05) ↩

  16. Ubuntu package openssh-client in noble. https://packages.ubuntu.com/noble/openssh-client (accessed 2026-12-05) ↩

  17. Ubuntu package openssh-client in resolute. https://packages.ubuntu.com/resolute/openssh-client (accessed 2026-12-05) ↩

  18. Alpine package openssh, branch v3.25. https://pkgs.alpinelinux.org/packages?name=openssh&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩


Edit: OpenSSH

If you give an email address it is recorded publicly as the author of the commit, and GitHub will link the commit to your account if that address belongs to one.

Edits are reviewed before they appear. By submitting you release your contribution under CC BY-SA 4.0. Read the editorial guidelines first.

This site uses Just the Docs, a documentation theme for Jekyll.