← Back to section · Post-Quantum Migration

Case Study: OpenSSH's Two Leaps to Post-Quantum Key Exchange by Default

OpenSSH made the sntrup761 hybrid key exchange the default in 9.0, then switched to an ML-KEM hybrid in 10.0 and added a warning for non-post-quantum connections. The release notes of a single open-source project record the plainest and most effective playbook for infrastructure software migration.

Published 22 November 2026 · 5 min read · PQ Frontier

Case Study: OpenSSH's Two Leaps to Post-Quantum Key Exchange by Default
AI-generated site artwork
Video explainer · Migration Case Studies: Lessons from Early Movers

SSH is the lifeline protocol of Internet operations, and OpenSSH is its de facto standard implementation. Its post-quantum migration has no white paper and no customer success stories; the entire record sits in its release notes. OpenSSH 9.0 in 2022 made the sntrup761x25519 hybrid key exchange the default. OpenSSH 10.0 in 2025 switched the default to the mlkem768x25519 hybrid and added a striking behaviour: when a connection does not use post-quantum key exchange, the client displays an explicit warning that the session may be recorded and decrypted in the future. The public record of these two leaps is short, but as a demonstration of infrastructure software migration it is worth as much as any large vendor’s case.

The first leap: why NTRU Prime went first

The timing of 9.0 is telling: NIST’s KEM standardisation was not yet final and ML-KEM did not exist. OpenSSH chose to hybridise sntrup761 from the NTRU Prime family with X25519, for reasons consistent with the project’s long-standing engineering stance: do not wait for the standard — close the harvesting risk now, and let the hybrid structure guarantee that if the new algorithm fails, the classical half still holds. The decision took nerve at the time, because it meant the algorithm would very likely have to be swapped again once the standard settled. The project’s judgement was that SSH sessions often carry long-term sensitive operations channels, the harvest-now-decrypt-later threat to SSH is real, and the opportunity cost of waiting exceeded the engineering cost of migrating twice. Events proved the judgement right: the algorithm was indeed swapped, and the cost of swapping proved bearable.

The second leap: ML-KEM, plus a warning for old connections

After FIPS 203 was finalised, OpenSSH 10.0 made the mlkem768x25519 hybrid the default, keeping the sntrup761 scheme as an option. The more noteworthy move in the new release is the warning mechanism: when connecting to a server that only supports classical key exchange, users see a warning that the connection is not using a post-quantum key exchange algorithm. This is a deliberate product decision — it transfers migration pressure from the advanced side to the lagging side: if the server does not upgrade, the administrator is reminded at every login. The commonest deadlock in infrastructure migration is both sides waiting for the other to move first; the warning breaks that deadlock at minimal cost. It does not block the connection or break compatibility; it merely makes lagging conspicuous.

The pitfalls: interoperability and the ecosystem long tail

OpenSSH’s pitfalls are not in itself but in the ecosystem long tail. SSH clients and servers are scattered across embedded devices, ageing systems and third-party implementations, many unmaintained for years. After the default algorithm changed, new clients could still negotiate a downgrade to old servers reliably, but some implementations handle algorithm lists in non-standard ways and may fail negotiation or behave oddly. The remedy is also built into its mechanisms: the key exchange algorithm list is fully configurable, and administrators can pin algorithms per host. In other words: advanced by default, exemptions by configuration — defaults move the big picture forward while configuration absorbs the long tail. That is the most realistic scheme a single open-source project can offer: it cannot run compatibility testing for the whole ecosystem, so it makes the downgrade path as solid as possible.

Set expectations for the long tail’s timescale as well. Mainstream operating system distributions package new OpenSSH versions on their own cycles — months at best, years at worst — while embedded SSH implementations inside network gear, storage arrays and industrial control systems may not update for a decade. That means the warning introduced in 10.0 will keep appearing for many years; it is not transitional noise but the standing background of a long-tail ecosystem. The administrator community has already adapted in a telling way: treat the warning as an asset discovery tool — every time it appears, register one more device that is not yet post-quantum and feed it into the inventory. Seen that way, the warning mechanism moonlights as a network-wide cryptographic inventory probe, a harvest beyond its designers’ original intent, and a hint to other infrastructure projects: explicit notices plus observable output make migration state measurable for the first time.

The threat judgement behind the warning

The 10.0 warning rewards a closer look, because it embodies OpenSSH’s distinctive judgement of the SSH threat model. The project explained its reasoning in the release notes: SSH connections routinely cross uncontrolled networks, and an attacker can record today’s session traffic in full and decrypt it offline once quantum capability matures — while what flows inside SSH sessions is often the highest-privilege operations traffic on a server. One decrypted historical session can expose not just data but operating habits, internal addresses and credential clues. In other words, SSH’s harvest-now-decrypt-later risk is heavier than ordinary web traffic’s, because its session content has an exceptionally high value density. The warning’s wording matches that judgement: it does not say the algorithm is outdated; it says plainly that this connection is not using a key exchange that resists future decryption. Stating the risk as a concrete consequence rather than a technical term is why the warning actually moves administrators to act. There is a general lesson here for migration communication: when explaining post-quantum migration to decision-makers, the concrete record-then-decrypt chain always works better than algorithm names.

What can be copied

This case is surprisingly copyable, because what it depends on is not resources but decision rights: anyone who controls the defaults of some system can do the same — set post-quantum algorithms as the default, keep classical downgrade, and leave configuration exemptions. In-house systems, base images and configuration baselines inside an enterprise are all natural venues for this defaults-as-migration approach. What cannot be copied is OpenSSH’s ecosystem position: its defaults are inherited verbatim by distributions and amplified into global coverage, while an ordinary organisation’s defaults cover only its own systems. But bring the view back home and that is precisely the part that should be finished first — make every default you control post-quantum, then talk about ecosystem coordination.

Tags: OpenSSHSSHDefault ConfigurationInfrastructure