The SSH key GitHub's docs tell you to generate is Ed25519. The key your YubiKey makes with ssh-keygen -t ecdsa-sk is P-256. The NSA advisory published December 1 flags both as algorithms to inventory and move off. In September, GitHub's own changelog said Ed25519 and ECDSA keys "will continue to work for the indefinite future". That sentence aged quickly.
So is Ed25519 or P-256 broken? Nobody has published a break for either. What we have is an NSA advisory, a rumor relayed by Bruce Schneier, and Google scheduling P-256 out of Chrome's CA trust. Here's how to check your GitHub SSH key, and the two changes I'd make this week: post-quantum key exchange and a new P-384 or RSA key.
What happened, and what didn't
The NSA advisory tells system owners to inventory anything not approved under CNSA 2.0 or CNSA 1.0. Its examples include "elliptic curves other than P-384 or P-521 for ECDH or ECDSA" and "EdDSA". The NSA press release that came with it says "Frontier SI companies have engaged with the U.S. government to responsibly disclose recent discoveries".
On December 3 Bruce Schneier wrote a post reading the advisory as implying a break to elliptic curve systems: "Almost certainly not a break that exposes operational systems, but one that significantly weakens the current parameters." Then he added an edit: "I just heard from a reliable source that ECC P-256 was broken." Read the next line too: "Remember that cryptographers have a different definition of 'broken' than normal people do." He also says he doesn't know the details. One commenter on his blog responded that "'I just heard' plus 'I don't know the details' equals rumormongering."
Filippo Valsorda's reading of the advisory is blunter: 256-bit curves (P-256 and Curve25519/X25519/Ed25519) "are likely broken or significantly weaker than we thought", RSA and P-384 "might be fine as an interim solution", and ML-KEM and ML-DSA are where everyone needs to go.
The strongest evidence that this is more than vibes comes from a browser vendor. Google says that "as of March 15, 2027, Chrome intends to stop trusting Certification Authority (CA) keys using ECDSA P-256". That's 102 days after the announcement. Nobody gives every P-256 CA on the web that little notice for fun.
On the other side, the joint ONCD/NSA/CISA statement (quoted in Filippo's post) says "recent SI advances do not present an immediate and widespread threat", and on the HN thread people point out that P-256 was already excluded from CNSA 1.0 back in 2015. I don't think either side cancels the other out, and you don't need a paper to rotate a key that takes ten minutes to replace.
Step 1: check which key and key exchange GitHub sees
Two different things protect your git push: the key exchange (which encrypts the session) and your authentication key (which proves you're you). Check both.
Key exchange:
ssh -v -o ControlPath=none -T git@github.com 2>&1 | grep "kex: algorithm" If you don't see mlkem… or sntrup…, your traffic is protected by classical ECDH. That's exactly what "store now, decrypt later" goes after.
Authentication:
ssh -v -o ControlPath=none -T git@github.com 2>&1 | grep "Server accepts key" An Ed25519 key, an ECDSA P-256 key, or RSA under 3072 bits means you're on the list. Both commands come from the bauer.codes write-up.
To sweep everything loaded in your agent, Seth Larson's one-liner:
ssh-add -L | grep -E '^[^ ]*(nistp256|25519)' | grep -vE '^[^ ]*ml-?dsa' ssh-add -L only sees keys that are in the agent. An HN commenter suggested this to catch everything on disk:
find ~/.ssh -type f -name "*.pub" -exec ssh-keygen -lf {} \; And remember your public keys are public anyway: https://github.com/USERNAME.keys. The "just hide your pubkey" subthread on HN went about as well as you'd expect.
Step 2: one line in ~/.ssh/config for post-quantum key exchange
GitHub has offered the hybrid mlkem768x25519-sha256 key exchange since its September 22, 2026 changelog (enabled October 14). A recent OpenSSH will usually pick it on its own. But some systems force older defaults in /etc/ssh/crypto.conf, and on a managed laptop you may not be able to change that file. Pin it for GitHub in your user config:
Host github.com KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512 There's a real counterargument here, and it showed up in the Lobsters thread. If you're on up-to-date software with upstream defaults, a hardcoded KexAlgorithms line gains you nothing and freezes you out of future default changes. (The post's author pushed back, pointing at systems where the configured default isn't PQ.) It also turns off OpenSSH's built-in warning when a connection falls back to a non-PQ exchange, because the client only shows that warning when KexAlgorithms isn't set. My rule: run the ssh -v check first. If it already says mlkem768x25519-sha256, leave your config alone. If it doesn't, add the line and recheck.
And "hybrid" is the safe kind of compromise here: to read the session an attacker has to break both ML-KEM and X25519.
Step 3: replace your GitHub SSH key with P-384 or RSA-4096
GitHub has no post-quantum authentication, and that's the part I like least. OpenSSH 10.6 ships mldsa44-ed25519 keys (Seth Larson's post ties support to 10.6p2). But in community discussion #214623, a GitHub engineer on the Git Systems team says they "definitely want to ship" it, for both SSH auth and Git signing. They also say "technical limitations internally" stop them shipping it now, and they give no date.
Until then, the stopgap is P-384 or RSA. GitHub has required new RSA keys to be at least 3072 bits since October 14, 2026.
export GH_KEY="$HOME/.ssh/id_ecdsa_github" ssh-keygen -t ecdsa -b 384 -f "${GH_KEY}" Add the .pub at https://github.com/settings/keys, then pin it so ssh stops offering the old Ed25519 key first:
Host github.com KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512 IdentityFile ~/.ssh/id_ecdsa_github IdentitiesOnly yes Reload the agent and rerun both checks:
ssh-add -D ssh-add "${GH_KEY}" Once it works, delete the old key from GitHub, from the agent, and from disk. Seth Larson: "It pains me to say that having an RSA-4096 key is a decent stop-gap at this point until you can upgrade to a quantum-safe key across both your hardware key / password manager and services you're using the key with." Same.
The commit-signing gotcha
If you sign commits with SSH, you probably reused the same Ed25519 key, so swapping your auth key isn't enough. On GitHub a signing key is a separate entry. Add the new public key again, this time as a Signing key, and point git at it:
[user] signingkey = ~/.ssh/id_ecdsa_github.pub [gpg] format = ssh [commit] gpgsign = true Skip this and you'll find out a week later when your commits stop showing "Verified". If you're on GPG, Seth Larson's filter finds the affected keys:
gpg -k --keyid-format long | grep -E '^(pub|sub|sec|ssb)[#>]? +[^/ ]*(25519|256)' | grep -viE 'ky[0-9]|dil[0-9]|ml-?kem|ml-?dsa' The caveats that will bite you
| Setup | What happens | What to do |
|---|---|---|
YubiKey / FIDO (-t ecdsa-sk) | Always P-256. -b 384 is silently ignored: "ECDSA-SK, Ed25519 and Ed25519-SK keys have a fixed length and the -b flag will be ignored." | Check the result with ssh-keygen -lf. Your choice is a hardware key that's P-256 or a software key that's P-384. |
| Bitwarden SSH agent | Ed25519 and RSA only | RSA-4096 |
| 1Password | RSA and Ed25519 only, per a Lobsters commenter | RSA-4096 |
| Secure Enclave (Termius and similar apps) | P-256 in the apps HN commenters tried. One says macOS sc_auth can make a P-384 key, but you need a custom agent | Software key, or wait for ML-DSA |
ML-DSA (ssh-keygen -t mldsa44-ed25519) | Needs OpenSSH 10.6+, and GitHub doesn't accept it yet. Ubuntu 26.04.1 ships 10.2p1. | Check with `ssh -Q key \ |
The YubiKey row is the one I'd argue about. A hardware-bound P-256 key means an attacker needs both your public key and whatever the rumored attack costs. A P-384 file in {% raw %}~/.ssh can be stolen by any malware that reads your home directory. If your threat model is "stolen laptop" and not "nation state with a discrete-log trick", keeping the YubiKey for now is a defensible choice. Just make sure it's a decision you made on purpose.
The short checklist
- Run the two
ssh -vchecks. - Add the
KexAlgorithmsline only if the kex check doesn't showmlkem. - Generate a P-384 (or RSA-4096) key and register it twice on GitHub, once for auth and once for signing.
- Update
signingkeyin~/.gitconfig. - Remove the old Ed25519/P-256 key from GitHub, the agent, and disk.
- Watch the GitHub changelog for
ssh-mldsa44-ed25519, then rotate again.
Yes, step 6 means doing all of this twice, which is what you sign up for with a stopgap.
So, are you rotating your SSH keys over a rumor and an NSA deadline, or are you waiting for an actual paper? And if you're on a YubiKey, are you giving up the hardware to get to P-384?
Sources
- NSA advisory (PDF): https://media.defense.gov/2026/Dec/01/2004039413/-1/-1/0/CSA_Immediate_Actions_Push_Toward_PQC.PDF
- Schneier, "NSA Urging Rapid Transition to Post-Quantum Cryptography": https://www.schneier.com/blog/archives/2026/12/nsa-urging-transition-to-post-quantum-cryptography.html
- Filippo Valsorda, "What to Make of the NSA Advisory": https://words.filippo.io/nsa-advisory/
- Seth Larson, "How to find and upgrade SSH and PGP keys using P‑256, ED25519, and Curve25519": https://sethmlarson.dev/how-to-find-and-upgrade-256-bit-curve-keys
- Google, "Keeping HTTPS Connections Safe in Chrome": https://blog.google/security/keeping-https-connections-safe-in-chrome/
- bauer.codes, "Post-Quantum GitHub SSH": https://bauer.codes/post/2026/12/post-quantum-github-ssh/
- GitHub Changelog, "Security improvements for SSH": https://github.blog/changelog/2026-09-22-security-improvements-for-ssh/
- GitHub community discussion #214623: https://github.com/orgs/community/discussions/214623
- Discussions: https://news.ycombinator.com/item?id=50767789 · https://news.ycombinator.com/item?id=50767100 · https://lobste.rs/s/xibh7v/post_quantum_github_ssh