Skip to main content
Security Infrastructure Cryptography 2026-12-03 • 11 min read

Post-Quantum SSH: Why OpenSSH Now Defaults to Quantum-Safe Key Exchange - and How to Migrate

The "store now, decrypt later" threat is real. Here is what OpenSSH's hybrid KEX does about it.

The Threat: Store Now, Decrypt Later

A cryptographically-relevant quantum computer does not need to exist yet to threaten your data. The risk is called "store now, decrypt later" (also "harvest now, decrypt later"): an attacker records encrypted SSH sessions today and decrypts them years from now, once a quantum computer can break the underlying math.

SSH's entire privacy depends on cryptographic key agreement. If the key exchange is broken, the entire session can be decrypted - retroactively. Estimates for when a cryptographically-relevant quantum computer will arrive range from 5 to 20 years, with many observers pointing to the mid-2030s. For anything your organization cares about long-term, the time to migrate is now, not then.

Key Insight

Key exchange is the urgent priority because it protects past traffic. Signature algorithms matter too, but they have no "store now, decrypt later" exposure - the only urgency there is retiring classical keys before quantum capability arrives.

What OpenSSH Changed

OpenSSH has shipped post-quantum key agreement for several years and made it the default:

  • OpenSSH 9.0 (April 2022) introduced sntrup761x25519-sha512 as the default key exchange.
  • OpenSSH 9.9 added a second post-quantum scheme, mlkem768x25519-sha256.
  • OpenSSH 10.0 (April 2025) made mlkem768x25519-sha256 the new default.
  • OpenSSH 10.1 began warning users when a connection does not use a post-quantum key exchange.

If you have seen a warning directing you to openssh.com/pq.html, it means the server you connected to did not offer one of the two standardized post-quantum algorithms. The fix is usually to upgrade the server - or to check that KexAlgorithms has not been configured to disable them.

Why the Hybrids Are Safe

Post-quantum algorithms are newer than RSA or ECDH, and the security community treats them with appropriate caution. OpenSSH's answer is hybrids: every post-quantum algorithm is combined with a classical one.

mlkem768x25519-sha256, for example, combines ML-KEM (a post-quantum key agreement scheme) with ECDH/x25519 (the classical algorithm that was previously the preferred default). If the post-quantum half turns out to be broken by future cryptanalysis, the combined scheme is still no worse than the previous best classical algorithm. That is a deliberately conservative design.

A Migration Checklist

Bringing a fleet to quantum-safe SSH is mechanical but detail-sensitive. The steps we follow on every engagement:

  1. Inventory: every server, client, and the OpenSSH version each one runs.
  2. Upgrade: move servers to OpenSSH 9.9+ (ideally 10.x) and pin packages so they do not drift backward.
  3. Audit config: confirm KexAlgorithms still includes mlkem768x25519-sha256 and sntrup761x25519-sha512.
  4. Retire weak options: remove legacy ciphers and old host keys that no longer serve a purpose.
  5. Test compatibility: confirm old clients can still connect - or document the exception.
  6. Roll out: apply hardened sshd_config and ssh_config settings in a controlled order.
  7. Verify: scan each connection and confirm the negotiated algorithm is post-quantum.
  8. Document: leave a written record so the configuration survives team turnover.

If You Cannot Upgrade Right Away

The ideal is to update every server to an SSH implementation that supports at least one post-quantum algorithm. If a server cannot be updated yet, or you choose to accept the residual risk for a legacy host, silence the warning selectively rather than fleet-wide - for example, scoping WarnWeakCrypto no-pq-kex to a specific host in ssh_config.

Post-quantum SSH is not a one-time checkbox - it is part of an ongoing hardening posture. If you would rather not navigate the upgrade, compatibility testing, and configuration alone, we audit and harden SSH infrastructure so every connection is quantum-safe.

Ready to Get Started?

Contact us today to learn how we can help your business succeed online. Schedule a free consultation with Jarod.

Request Support