Post Quantum SSH: The Lock Is Ready, Your Key Isn't
The NSA told its owners to move to post-quantum crypto. For SSH the lock on your connection is mostly done. Your old Ed25519 key is the part to check.
Your SSH connection already wears a post-quantum lock. The ID card you show at the door does not.
Both halves of that sentence matter this week. Take them one at a time.
What happened
On 2 December the US National Security Agency (NSA) told the owners of its national security systems to move to post-quantum cryptography immediately. It added that some frontier companies had just reported discoveries that affect the security of cryptography in use today.
“Post-quantum” means built to survive a future quantum computer, a machine that could one day break the locks we use now. The public papers do not say what the new discoveries are. They do say where to start: make a list of every place you use cryptography.
Why a developer should care
That list includes SSH, and it asks you to flag a few kinds of keys. One of them, in the advisory itself, is EdDSA. In practice that means Ed25519, which is probably the type of your SSH key. Run ls ~/.ssh and look for a file called id_ed25519.
The cryptographer Filippo Valsorda reads that list as a hint that 256-bit curves, Ed25519 included, are likely broken or much weaker than we thought. That is his inference. The NSA has not said it.
You do not have to settle that argument. Your SSH key is the spare house key you handed out years ago and never counted again. It sits on servers, on GitHub and in CI (the robot that deploys your code), and nobody has looked at it since the day you made it. In nearly 10 years of building software, my view is that the SSH key is the one piece of setup nobody reviews, because it never breaks.
Two jobs, two different answers
Think of SSH as a guard at a door. He does two jobs.
First, you and the guard agree a secret language, so nobody listening in the corridor can follow. That is key exchange, the lock on the conversation. Second, you show an ID card so he knows you are you. That is your key.
The two jobs have different urgency. Someone can record your scrambled conversation today and try to unscramble it years later on a better machine. The OpenSSH project calls this “store now, decrypt later”. So the lock came first, and OpenSSH has used a post-quantum one by default since 2022. It is a hybrid, the new lock and the old lock together, so an attacker has to break both.
An ID card is different. The guard checks it once, live. A recording of last year’s login does not help anyone get in today, and OpenSSH’s own FAQ says the only urgency is to retire old keys before the big machines arrive. Filippo’s reading shortens that. If the old kind of ID can be forged without a quantum computer, as he suspects, “later” is closer than we planned.
Check the lock in one command
ssh -v you@your-server exit 2>&1 | grep "kex: algorithm"
Read it left to right. ssh -v logs in and prints every detail of what you and the server agreed, and the v stands for verbose. exit is the command to run on the server, and it closes at once, so you only watch the handshake. 2>&1 moves those details into the same stream, so the next step can read them. grep "kex: algorithm" keeps the one line that names the lock.
You want to see mlkem768x25519-sha256 or sntrup761x25519-sha512 there. These are the two post-quantum locks the OpenSSH page names. Anything else means the server is old, or someone pasted a hand-picked list into its config years ago and forgot. Recent versions of the ssh client also print a warning when the lock is not post-quantum. Treat that warning as a to-do item, not noise.
What to do now, and what can wait
Now, and calmly, because nothing is broken today. A separate statement quoted by Filippo says the recent advances do not present an immediate and widespread threat. So do the cheap parts this week. Run the check against the servers you care about. If one fails, upgrade the server’s OpenSSH before you touch anything else. Then write down every place your key lives.
Later, over weeks and not days. Filippo’s advice is to update OpenSSH to 10.6 and move to keys of type ssh-mldsa44-ed25519, which pairs Ed25519 with a post-quantum scheme. Add the new key beside the old one, and remove the old one only after the new one works everywhere. If you have not done the web side yet, the post quantum TLS checklist is the other half of this list.
My rule: a key you cannot name is a key you cannot rotate, so count them before you change them.
How many keys in your authorized_keys files can you put a name to today?
Sources, checked on 4 Dec 2026: the NSA press release and advisory, Filippo Valsorda’s post (his reading, not the NSA’s), and the OpenSSH post-quantum page. The advisory link is a copy hosted by the American Hospital Association, since the NSA site blocks scripts.
Get the next one by email.
Sent when a post is ready. Never filler.
Free / One email per post / Unsubscribe in one click
Next issue // when it is ready
No filler.
One lesson from production per issue. What broke, why, and the rule I took from it. No roundups. No launch-day cheerleading.