⏱️ Reading time: 9 min
Since September 22, 2026, GitHub has accepted mlkem768x25519-sha256 as a post-quantum SSH key exchange algorithm, a hybrid scheme that combines classical elliptic curve cryptography with ML-KEM, the mechanism NIST standardized to resist a future quantum computer (source). The change went almost unnoticed until the NSA published a post-quantum cryptography advisory on December 1, 2026, which reignited technical discussion among developers.
📑 En este artículo
- What exactly changes in your post-quantum SSH connection to GitHub
- Why it matters now: harvest today, decrypt later
- How to check which algorithm your connection uses now
- Steps to move to hybrid key exchange and a stronger authentication key
- Alternatives if you don’t want to edit the config by hand
- What this means for you
- Limitations and when not to rush
- What the community is discussing
- Frequently Asked Questions
- References
Researcher Filippo Valsorda responded with a detailed analysis of what GitHub’s change covers and what it doesn’t, after a since-deleted post from Cloudflare CEO Matthew Prince sparked speculation without adding any new technical detail (source). This guide summarizes what to check in your SSH setup for GitHub today and which steps actually make sense, without assuming cryptographic doomsday arrives tomorrow.
What exactly changes in your post-quantum SSH connection to GitHub
An SSH connection solves two distinct problems: key exchange (kex), which negotiates the shared secret used to encrypt the session, and authentication, which proves that the public key you present is actually yours. GitHub has only moved forward on the first one. It offers mlkem768x25519-sha256 and, as Valsorda documents, also sntrup761x25519-sha512 as hybrid kex options (source).
For authentication, there’s still nothing post-quantum. GitHub still suggests Ed25519 as the default key type when generating a new one, a status confirmed as of December 4, 2026, and neither OpenSSH 10.6 nor GitHub offers an ML-KEM-based (FIPS 203) alternative for that step (source). The strongest option available today is ECDSA with the P-384 curve or RSA with 3072 bits or more, not because they resist indefinitely, but because they’re the best classical choice while no PQC authentication standard exists for SSH.
Why it matters now: harvest today, decrypt later
The risk behind the NSA’s advisory isn’t that someone breaks your key this week. It’s that someone captures encrypted SSH traffic today and stores it, waiting for a quantum computer capable of breaking elliptic curve cryptography within 10 to 15 years: the scenario known as “harvest now, decrypt later”.
📌 Note: this mainly affects key exchange, which protects the confidentiality of captured session traffic. Authentication has a different attack window: to forge it, someone would need to break your private key before you replace it, not before your current session ends.
Who should care about this today: teams managing CI/CD servers with long-lived deploy keys pointing at GitHub, administrators of laptop fleets with personal SSH keys that aren’t rotated periodically, and anyone who signs commits over SSH and wants that signature to remain trustworthy a decade from now.
How to check which algorithm your connection uses now
OpenSSH has a verbose mode that shows, among other things, which key exchange algorithm the client negotiated with the server and which key type GitHub accepted during authentication. Valsorda publishes the exact syntax, line by line, in his original guide (source); GitHub’s official documentation on connecting over SSH also covers how to generate and check keys step by step (source).
Another way to check without touching the terminal is any GitHub account’s public keys page, which lists registered authentication keys by appending /keys to the username in the profile URL. It’s useful for auditing which key type you have registered without depending on which machine you happen to be using.
Steps to move to hybrid key exchange and a stronger authentication key
No reinstalling needed: modern OpenSSH already ships with the hybrid algorithms, you just need to explicitly prefer them.
- Open your user SSH config file (or the system-wide one if you manage several accounts on the same server) and add a specific block for the github.com host that declares the hybrid key exchange algorithms as preferred over the classical ones.
- Generate a new authentication key based on ECDSA with the P-384 curve (384 bits) or RSA with at least 3072 bits. Ed25519, even though it’s still GitHub’s default suggestion when creating a key, doesn’t have a post-quantum equivalent yet.
- Register the new public key in the SSH keys section of your GitHub account settings, without deleting the old one until you confirm access works with the new key.
- If you sign commits over SSH, repeat the registration in GitHub’s signing keys section and update your git configuration (user and signing key) to point to the new key.
- Close any active persistent SSH connections and reload the agent so the new key gets used on the next connection, then confirm with verbose mode that key exchange and authentication now use the new algorithms.
GitHub’s official documentation covers the step of generating the key and adding it to your account with exact detail for each operating system (source); if you sign commits, GitHub’s commit signature verification guide explains registering the signing key separately (source).
Alternatives if you don’t want to edit the config by hand
Manually editing the SSH config isn’t the only way to solve this, and for teams with many machines it may not be the most practical one. These three approaches don’t solve exactly the same problem.
| Approach | What it solves | Limitation |
|---|---|---|
| Edit the SSH config and rotate to ECDSA P-384 or RSA-3072 (what this guide describes) | Enables hybrid kex and a stronger authentication key right away, with no extra tooling | Has to be repeated machine by machine, and GitHub still doesn’t offer pure post-quantum authentication |
| Short-lived SSH certificates (HashiCorp Vault’s SSH secrets engine, step-ca) | Eliminates the long-lived static key: every access issues a certificate that expires in minutes or hours | Requires running and maintaining your own certificate authority, and doesn’t change the session’s key exchange algorithm |
| HTTPS access with a personal token instead of SSH | Avoids the SSH key exchange entirely by using TLS for the connection to GitHub | Doesn’t work for signing commits over SSH or for git workflows that depend on an SSH agent |
What this means for you
If you manage deploy keys for CI/CD pipelines that run git pull or push against GitHub over SSH, the first step isn’t generating new keys, it’s checking which OpenSSH version each runner is running. If it’s recent, add the github.com block to the system-wide SSH config (not just your personal one) so every runner inherits the hybrid kex without each developer having to repeat it.
If your runners are ephemeral containers running an old OpenSSH image, patching image by image has little payoff compared to migrating those pipelines to short-lived certificates: that fixes the underlying problem (long-lived static keys) instead of patching one algorithm at a time. For personal keys you use to push your own code, switching to ECDSA or RSA is enough and takes minutes.
Limitations and when not to rush
- Old OpenSSH leaves no room to work with: according to a developer on Hacker News, on nine-year-old setups the only kex option available is still ecdh-sha2-nistp384 or ecdh-sha2-nistp521, with nothing post-quantum (source). There’s nothing to enable there until the software gets updated.
- GitHub still doesn’t offer post-quantum authentication. Moving to ECDSA P-384 or RSA-3072 reduces the risk compared to Ed25519, but doesn’t eliminate it: neither one resists a future quantum attack indefinitely.
- The change has to be repeated for every machine and every account you use to sign or authenticate, which makes centralized alternatives more attractive if you manage more than a handful of servers.
- This is preventive mitigation, not a response to a detected attack. There’s no published evidence that SSH traffic to GitHub is already being captured to be decrypted later.
What the community is discussing
In the Hacker News thread about the advisory, user adrian_b qualifies the real scope of the risk: breaking a key 15 years from now only allows impersonating its owner from that point forward, and only if that person hasn’t changed keys in the meantime (source). That’s an argument in favor of rotating keys with some regularity, rather than spending months optimizing exactly which algorithm to use today.
Another angle that almost no migration guide mentions comes from user hamburglar in the same thread: an SSH public key is, in fact, public, and if you reuse the same one across several accounts or services, it can be used to link identities together (source). Generating a new key specific to GitHub, instead of recycling the one you already use elsewhere, solves that fingerprinting problem as a side effect, even though it wasn’t the original goal of the change.
Frequently Asked Questions
Do I need to change my Ed25519 key right now?
There’s no immediate urgency: the risk is long-term (harvesting traffic today to decrypt it a decade from now). But since the change takes minutes, it’s worth planning it this week instead of waiting for a post-quantum authentication alternative, which doesn’t exist yet.
Will this break my existing SSH connections?
No, if you do it in order. Adding the hybrid algorithms as preferred in the config only changes what the client negotiates first; keep the old key active until you confirm the new one works before deleting anything.
Does this affect HTTPS access with a token?
No. HTTPS uses TLS, an encryption mechanism separate from SSH, with its own timeline for post-quantum cryptography adoption. This guide is specific to those using git over SSH against GitHub.
References
- bauer.codes, Post-Quantum GitHub SSH: primary source with the NSA advisory, Filippo Valsorda’s analysis, and the configuration syntax.
- GitHub’s SSH documentation: official guide to connecting to GitHub and checking SSH keys.
- GitHub’s key generation documentation: official steps for generating a new key and adding it to your account.
- Hacker News thread on the advisory: community discussion on the scope of the change.
- adrian_b’s comment on Hacker News: qualifies the real risk window of a future key compromise.
- hamburglar’s comment on Hacker News: warns about using public keys to link identities.
Featured image: Foto de FlyD en Unsplash
How each article is made (sources, testing and editorial criteria): How we work.
Did it work for you? Got a different error? Say so below: questions get answered and help the next reader.
Leave a comment
0 Comments