Back
Post-quantum SSH with ML-DSA: why you should not rush your SSH keys and SSH certificate authority to ML-DSA, and how to secure SSH today

Securing SSH After This Week's Crypto News: Why You Shouldn't Rush to ML-DSA

What a week. Between the NSA telling everyone to move to post-quantum cryptography “immediately” and Chrome announcing it will distrust P-256 CA keys in 101 days, my inbox has been full of the same question: “Should we move our SSH keys to ML-DSA tomorrow?”

I get it. When the NSA, Google, and Mozilla all move in the same week, doing nothing feels irresponsible. But I have also seen what happens when teams rush a crypto migration: half the fleet can’t log in, someone builds OpenSSH from source on a production box, and the “more secure” setup ends up with its CA key sitting in a file instead of an HSM.

So instead of guessing, we spent the week in the lab. We signed SSH certificates for every key type EZSSH supports, under every CA type, and tried to log in with them across Windows, Ubuntu, GitHub, and the newest OpenSSH builds. That is 420 combinations, plus real Azure Key Vault CAs, GitHub, and Windows OpenSSH Server. The short answer: don’t rush to ML-DSA for SSH yet. Here is why, and what you should do instead.

What This Week’s Crypto News Means for SSH

If you missed it, Aaron wrote up the whole timeline in our post on Chrome distrusting P-256 CA keys. The short version:

  • November 30: Anthropic published new research on a quantum attack against the structured lattice math behind ML-KEM and ML-DSA. Cryptographers concluded it is a real theoretical advance but nowhere near practical against the actual standards.
  • December 2: The NSA advised an immediate transition to post-quantum cryptography, saying frontier AI companies had privately disclosed discoveries affecting some cryptographic systems in use today.
  • December 3: Mozilla said it understands there was a substantial advance in classical cryptanalysis of at least one widely deployed public-key cryptosystem, and Chrome announced it will stop trusting ECDSA P-256 CA keys on March 15, 2027.

Nobody has said publicly which algorithm got weaker. And SSH runs on exactly the same primitives everyone is worried about: RSA, ECDSA (P-256, P-384, P-521), and Ed25519. So it is a fair question. But before you change anything, you need to separate the two very different jobs that crypto does in an SSH connection.

Post-Quantum SSH Has Two Halves: Key Exchange and Authentication

Every SSH connection does two things:

  • Key exchange agrees on the session keys that encrypt your traffic.
  • Authentication proves who the server is (host keys) and who you are (your user key or SSH certificate).

These have very different risk profiles.

Key exchange is the “harvest now, decrypt later” problem. An attacker who records your SSH traffic today can decrypt it years from now if the key exchange is ever broken. That is the part that is urgent, and the good news is that you probably already have post-quantum key exchange. OpenSSH has defaulted to the hybrid sntrup761x25519-sha512 key exchange since version 9.0, and to the hybrid mlkem768x25519-sha256 (ML-KEM) since version 10.0. The OpenSSH 9.5 built into Windows 11 and the 9.6 that ships with Ubuntu 24.04 both negotiate a post-quantum hybrid by default.

Authentication is not retroactive. A signature only has to hold up at the moment you log in. If someone breaks ML-DSA, ECDSA, or RSA in 2030, they can’t go back and log in as you in 2026. A broken signature algorithm becomes a problem from the day it breaks, which means what you really need is the ability to swap algorithms quickly when that day comes, not a rushed migration today.

How to Check That Your SSH Uses Post-Quantum Key Exchange

Run a verbose connection and look for the negotiated key exchange:

ssh -V
ssh -v user@server exit 2>&1 | grep "kex: algorithm"
ssh -V
ssh -v user@server exit 2>&1 | Select-String "kex: algorithm"

If you see mlkem768x25519-sha256 or sntrup761x25519-sha512, that connection is protected against harvest now, decrypt later. If you see curve25519-sha256 or ecdh-sha2-nistp256, one side is too old or someone pinned KexAlgorithms in an sshd_config years ago. Run sudo sshd -T | grep -i kexalgorithms on the server to see what it actually offers.

That single check does more for your post-quantum SSH posture than any ML-DSA key will this year.

We Tested Post-Quantum SSH Keys and ML-DSA CAs Across Real OpenSSH Versions

Now for the authentication side. We generated certificates with EZSSH’s own signing code for every user key type (RSA 2048 and 4096, ECDSA P-256, P-384 and P-521, Ed25519, and the hybrid ML-DSA-44 + Ed25519) under four CA types (RSA 4096, ECDSA P-384, ECDSA P-521, and a hybrid ML-DSA-44 + Ed25519 CA). Each server trusted only the CA under test, and we logged in with each certificate from these OpenSSH builds:

OpenSSH Build Version Used As
Windows 11 built-in 9.5 Client
Git for Windows 10.0p2 Client
Ubuntu 24.04 9.6p1 Client and server
Upstream, built from source 10.6p1 Client and server
Upstream, built from source 10.6p2 Client and server

Five clients, three servers, four CAs, and seven user keys: all 420 combinations behaved exactly as expected, and every certificate passed ssh-keygen -L signature verification. “As expected” is doing a lot of work in that sentence, so let’s look at what actually logged in.

Classical CAs and Ed25519 Keys Work Everywhere

Under RSA 4096, ECDSA P-384, and ECDSA P-521 CAs, this is how each user key type did:

User Key Windows 9.5 Git for Windows 10.0 Ubuntu 9.6 OpenSSH 10.6
RSA 2048 / 4096 ✅ ✅ ✅ ✅
ECDSA P-256 / P-384 / P-521 ✅ ✅ ✅ ✅
Ed25519 ✅ ✅ ✅ ✅
ML-DSA-44 + Ed25519 ❌ Client can’t load the key ❌ Client can’t load the key ❌ Client and server don’t know the type ✅ Only when client and server are both 10.6

Every ✅ held against every server we tested. We ran the same matrix again with real HSM-backed ECDSA CA keys in Azure Key Vault (60 out of 60 as expected), so the classical options are not just a lab result.

ML-DSA SSH User Keys Need OpenSSH 10.6 on Both Ends

The hybrid ML-DSA-44 + Ed25519 user key works great, as long as both the client and the server run OpenSSH 10.6 or later. That rules out the OpenSSH that ships with Windows 11, the one in Git for Windows, and the one in Ubuntu 24.04 LTS. In other words, it rules out most of the machines your engineers actually use today.

A Post-Quantum SSH CA Needs OpenSSH 10.6p2 on Every Server

The post-quantum CA was even pickier:

Connection Result
OpenSSH 10.6p2 client → 10.6p2 server ✅ Every user key type, including the hybrid one
Any client → OpenSSH 10.6p1 server ❌ Refused: certificate signature algorithm not in CASignatureAlgorithm
Any client → Ubuntu 9.6 server ❌ The server doesn’t know the CA type
Windows 9.5, Git for Windows 10.0, or Ubuntu 9.6 client → any server ❌ The client can’t read the certificate

Two things here should worry anyone planning a quick migration. First, 10.6p1 is not enough. In our testing, 10.6p2 was the first release that accepted this CA signature algorithm, so “we upgraded to 10.6” is not the same as “we can use a post-quantum CA.”

Second, the failure on older clients is confusing. The client checks the CA signature when it loads the certificate, can’t verify it, and silently falls back to offering the bare key. The server then says Permission denied (publickey). Your help desk will see this as a permissions issue, not a crypto issue, and you will burn hours figuring that out.

GitHub Does Not Accept ML-DSA SSH CAs or Keys

If you use SSH certificates for GitHub, this one is simple. We added lab CAs to our GitHub organization’s SSH certificate authorities:

CA Key Uploading to GitHub
RSA 4096 ✅ Accepted
ECDSA P-384 ✅ Accepted
ECDSA P-521 ✅ Accepted
Ed25519 ✅ Accepted
ML-DSA-44 + Ed25519 ❌ “Openssh public key is invalid”

Under the accepted CAs, certificates for RSA, ECDSA, and Ed25519 user keys authenticated and listed repository refs. A certificate for an ML-DSA-44 + Ed25519 user key got Permission denied (publickey). GitHub’s own CA form lists the key types it accepts, and none of them are post-quantum yet. If your developers’ Git access matters (and it does), ML-DSA is not an option there today.

Windows OpenSSH Server Supports SSH Certificates, But Not Post-Quantum

Since most of our readers live in Microsoft environments, we also tested the OpenSSH Server feature built into Windows (OpenSSH_for_Windows_9.5p2). Good news first: Windows servers accept SSH certificates through the same TrustedUserCAKeys setting as Linux, and every RSA, ECDSA, and Ed25519 user key logged in under RSA 4096, ECDSA P-384, and ECDSA P-521 CAs. The post-quantum CA and hybrid user keys failed, because Windows OpenSSH 9.5 doesn’t know those types. Post-quantum SSH on Windows has to wait until Microsoft ships a newer OpenSSH.

Why You Should Not Rush Your SSH to ML-DSA

Here is how I’m explaining this to customers.

1. Your Fleet Can’t Speak It Yet

Windows 11, Ubuntu 24.04 LTS, Git for Windows, and GitHub all failed with ML-DSA keys or CAs. To make a post-quantum SSH CA work today, you need OpenSSH 10.6p2 on every server and 10.6 on every client. For most organizations, that means building OpenSSH from source and maintaining it yourself on production servers, outside your distribution’s security updates. That is a much bigger and more immediate risk than a theoretical attack on your signature algorithm.

2. Your SSH CA Key Would Move Out of the HSM

The SSH CA key is the crown jewel. Whoever holds it can log in to every server that trusts it, which is why we have always said it belongs in an HSM (here is how to create an SSH certificate authority in Azure). The RSA and ECDSA CA keys in EZSSH are HSM-backed Azure Key Vault keys. Our ML-DSA-44 + Ed25519 CA is a software key, because the HSM-backed Key Vault keys we use for every other CA can’t hold it yet. Trading an HSM-protected RSA 4096 key for a software ML-DSA key to defend against a future attack is a downgrade today.

3. Lattice Cryptography Is Still Young

The research that kicked off this week was an attack on the lattice math that ML-DSA is built on. It is not practical, and it is not a reason to stop the post-quantum transition, but it is a good reminder of why you should not bet everything on one new algorithm. This is exactly why the only post-quantum option in EZSSH is the hybrid ML-DSA-44 + Ed25519 and not pure ML-DSA: an attacker would have to break both algorithms to forge a signature.

4. Authentication Can Wait for the Ecosystem, If You Are Agile

As we covered above, signatures are not a harvest now, decrypt later problem. If your SSH relies on certificates that last hours, switching the CA algorithm is a configuration change plus one login cycle. If your SSH relies on static keys in authorized_keys files on thousands of servers, the same switch is a year-long project. Crypto agility, not ML-DSA, is what you should be building this month.

How to Secure SSH Right Now

Here is the order I would do this in.

  1. Upgrade OpenSSH and verify post-quantum key exchange. Use the check above on your servers and your engineers’ machines. Look for anything still negotiating a classical-only key exchange, and remove any old KexAlgorithms overrides that keep the hybrids out.
  2. Get your SSH CA off P-256 and into an HSM. Chrome distrusting P-256 CA keys is about the web, not SSH, but the direction is clear. For your SSH CA, use RSA 4096 or ECDSA P-384/P-521 (both CNSA 1.0 compliant) in an HSM. Given what we know today, RSA 4096 is still the safest default, and it’s what I recommend in our post on what to do if RSA is broken.
  3. Use Ed25519 or ECDSA P-384 for user keys, and retire the weak ones. Drop DSA and RSA keys under 3072 bits. With short-lived certificates, a user key only matters for the few hours the certificate is valid, so the blast radius of a weakened user key algorithm stays small.
  4. Check your host keys. Run ssh-keygen -lf against each /etc/ssh/ssh_host_*_key.pub and make sure nothing is still on DSA or small RSA keys.
  5. Replace static SSH keys with short-lived SSH certificates. This is the step that makes the next migration painless. SSH keys are bad for a long list of reasons, and “I can’t rotate them when the algorithm breaks” just joined the list. If you are still in key land, start with our guide on how to rotate SSH keys and then move to certificates.
  6. Build a post-quantum SSH test environment (if you have the time; otherwise, skip). Stand up a server and a couple of clients on OpenSSH 10.6p2, point them at a test post-quantum CA, and find out what breaks in your tooling (Ansible, CI/CD runners, jump hosts, monitoring) before someone gives you a deadline.

These are the same fundamentals from our SSH best practices for Entra ID, with one new item: making sure you can change algorithms without a fire drill.

How EZSSH Handles Post-Quantum SSH

We used this testing to decide what EZSSH, our agentless, Just-In-Time (JIT) SSH certificate service for Entra ID, offers:

  • CA keys: RSA 4096 (the default), ECDSA P-384, and ECDSA P-521, all HSM-backed in Azure Key Vault. New CAs are no longer offered RSA 2048, RSA 3072, or ECDSA P-256. Existing CAs keep working as they are.
  • Post-quantum CA for testing: An ML-DSA-44 + Ed25519 hybrid CA, clearly labeled as testing only and as a software key, so you can run the post-quantum test environment above without building your own CA.
  • User keys: RSA, ECDSA P-256/P-384/P-521, Ed25519, and ML-DSA-44 + Ed25519 for server access. EZSSH refuses hybrid keys for GitHub, because GitHub doesn’t accept them.
  • Client-side key generation: The EZSSH CLI can generate any of these key types, and by default it matches the user key to the CA’s algorithm. When you change the CA, your users’ next certificate follows without anyone touching a key.

Every certificate is tied to the user’s Entra ID identity, protected by your Conditional Access and MFA policies, and expires in hours. That is what makes an algorithm change a setting instead of a project.

Conclusion

This week made one thing clear: the post-quantum transition is speeding up. But for SSH, the urgent half (key exchange) is most likely already done for you by OpenSSH, and the other half (authentication) needs agility far more than it needs ML-DSA today. Make sure you are on post-quantum key exchange, put your SSH CA on RSA 4096 or ECDSA P-384 in an HSM, get off static keys, and test ML-DSA in the lab until Windows, your Linux distribution, and GitHub catch up.

If you want help figuring out where your SSH environment stands, or you want to try post-quantum SSH certificates in a test environment, schedule a FREE call with one of our SSH experts.

Get Started With EZSSH