# Post-quantum cryptography: what tech teams should do now

> The NSA now advises an immediate move to post-quantum cryptography. What it means for SSH keys, servers, Git hosting and CI, and a plan to start today.

By Alexandr Bykov, OxiSoft. Published 2 December 2026.
Canonical: https://oxisoft.io/blog/post-quantum-ssh-keys-what-to-do-now/

On 2 December 2026 the NSA told the owners and vendors of US national security systems to [accelerate the transition to post-quantum cryptography immediately](https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/). Two reasons are given. Companies at the frontier of computing have privately disclosed recent discoveries that affect some cryptography in use today, and adversaries are already collecting encrypted traffic to decrypt later, once they can.

The advice is written for government systems, but the cryptography is the same one every company runs. The same SSH, the same TLS, the same signing keys. So we read it as a deadline for ourselves, and this is the plan we follow, written so another team can copy it.

## Two problems, two different timelines

Post-quantum work splits into two jobs, and it helps to keep them apart.

**Encryption of traffic.** An attacker who records your encrypted session today can store it and break it years from now. This is the "harvest now, decrypt later" threat the NSA mentions, and it is the urgent one, because the damage is done at the moment of recording.

**Signatures and keys.** A signature proves who you are while you log in. Breaking it later does not reopen old sessions, but it does let an attacker impersonate you from that day on, on every server that still trusts the old key. This job is about rotating keys before the break exists, not about past traffic.

The good news is that for SSH the first job is mostly done already, if your software is current. The second job is the one that needs work now.

## SSH traffic: already protected, if you are up to date

OpenSSH has used a hybrid post-quantum key exchange by default since version 9.0, and since version 10.0 the default is ML-KEM combined with X25519, built on the NIST post-quantum standard. Hybrid means the session key depends on both a classic and a post-quantum algorithm, so an attacker has to break both.

The condition is that both ends are recent. An old server, an old client or an old SSH library in a script quietly falls back to a classic exchange, and that session is exactly what can be recorded and broken later. Recent OpenSSH clients even warn about it: "connection is not using a post-quantum key exchange algorithm". Treat that warning as a ticket, not as noise.

## SSH keys: the new default is mldsa44-ed25519

Since OpenSSH 10.6, released in October 2026, there is a post-quantum key type that is enabled by default: `mldsa44-ed25519`. It combines ML-DSA-44, the NIST post-quantum signature standard, with the Ed25519 you already use. Every login is signed by both, and both signatures must check out. So the new key is never weaker than Ed25519, even if a flaw is ever found in the younger ML-DSA.

Our rule from today:

- **Every new SSH key is `mldsa44-ed25519`. No exceptions.**
- **Plain Ed25519 is legacy.** Existing Ed25519 keys get replaced over the next few months, on a schedule, not "when we get to it".

Creating one is a single command:

```bash
ssh-keygen -t mldsa44-ed25519 -C "you@example.com"
```

It is saved as `~/.ssh/id_mldsa44_ed25519`, a name the ssh client already tries by default. We checked the whole path on OpenSSH 10.6p2: a fresh key logs in to a server with a post-quantum host key, over the ML-KEM hybrid exchange. A 10.2 client talking to the same server simply refuses: "no matching host key type found".

Three things to know before you roll it out:

1. **Both ends need OpenSSH 10.6 or newer.** That includes the client on every laptop and every server you log in to. Long-term-support Linux releases often ship much older OpenSSH, so check the version before you plan the rotation.
2. **Keys from 10.4 and 10.5 do not count.** Those releases had an experimental version under a different name. OpenSSH says keys made with it must be regenerated.
3. **The public key is much bigger.** About 1.8 KB instead of about 80 bytes. Harmless for files, but some web forms and databases that store keys have length limits.

## Run both keys during the move, then retire the old one

The safe pattern is a short overlap, not a big-bang switch:

1. Upgrade OpenSSH on the server.
2. Add the new public key to `authorized_keys` next to the old one.
3. Log in with the new key, explicitly, and confirm it works.
4. Remove the Ed25519 line only after every client of that account has moved.

Do the same for host keys. A server running 10.6 can carry a `mldsa44-ed25519` host key next to its Ed25519 one, and clients that support it will start preferring it.

## Check every tool that touches a key

This is where most of the work hides. A server is easy to upgrade. The long tail is everything else that speaks SSH on your behalf. Make an inventory, and for each item, answer one question: does it accept `mldsa44-ed25519` today?

- **Git hosting.** At the time of writing, the documentation of GitHub and GitLab still lists only RSA, ECDSA and Ed25519 keys (plus their hardware variants). Self-hosted Git servers that run their own built-in SSH server depend on that server's support, not on your OpenSSH. Test before you migrate, and keep the old key registered there until it works.
- **Different SSH implementations, different names.** Not every SSH library implements the OpenSSH hybrid. The Go SSH library, used by many Git servers and tools, has started adding pure ML-DSA keys under other names. A key from `ssh-keygen` will not match those. Check the exact algorithm name your tool supports, not just "post-quantum: yes".
- **CI/CD.** Runner images ship their own ssh client, often an old one. Deploy keys sit in secret stores. Automation written in Python, Go or Java uses its own SSH library. Each of these must understand the new key before you switch the deploy key, or the pipeline stops on the next push.
- **Key storage.** SSH agents, password managers that hold keys, and hardware security keys. OpenSSH's hardware-backed key types are still only ECDSA and Ed25519, so a key on a FIDO token stays classic for now. Decide per account which matters more.
- **Monitoring and scanners.** Tools that audit SSH configuration or collect host keys may not recognize the new type yet and report it as unknown.

Write down the gaps. A tool that cannot handle the new key is not a reason to stop. It is a line in the plan, with an owner and a date.

## Beyond SSH: the inventory the NSA asks for

SSH is the place to start because the fix exists and costs nothing. The NSA's list goes further, and it applies to any company:

- **Know where your cryptography is.** Public-key algorithms, signatures, certificates, firmware checks. You cannot move what you have not listed.
- **TLS.** Current browsers and servers already negotiate hybrid post-quantum key exchange when both sides allow it. Make sure your load balancers and proxies are recent enough not to block it.
- **Signing.** Code signing, release signing and firmware signing keys live for years. These are the hardest to change later, so ask your vendors about their post-quantum plan now.
- **Buy for agility.** When you buy hardware or services, ask whether the cryptography can be upgraded in place. A device that cannot change its algorithms will need replacing.

The NSA's own national security systems must reach CNSA 2.0, which uses the larger ML-DSA-87. For ordinary SSH access, the hybrid ML-DSA-44 with Ed25519 is what the tools support today, and it is a real step up from Ed25519 alone.

## The plan, in short

1. Upgrade OpenSSH everywhere, and treat any non-post-quantum key exchange warning as a bug.
2. From today, generate only `mldsa44-ed25519` keys.
3. List every place an Ed25519 key is trusted: servers, Git hosting, CI, deploy keys, agents.
4. Test each one with a new key, keep the old key in parallel, then remove it.
5. Finish the rotation within a few months, and track what blocks it.

None of this needs a quantum computer to exist first. The traffic recorded today and the keys trusted today are what is at stake, and that is why we started the same day. We keep our own [data out of reach by not collecting it](/blog/data-never-collected-cannot-leak/), and post-quantum keys are the same idea applied to access: close the door before anyone knows how to open it.
