OpenSSH made Ed25519 the ssh-keygen default in 9.5, back in October 2023. On December 3, 2026, Damien Miller committed a change that drops it: ssh-keygen with no arguments will now produce an ECDSA key on the NIST P-384 curve. If you've spent a decade hearing that Ed25519 is the safe choice and NIST curves are the suspicious ones, this week made no sense.

So is Ed25519 broken? Nobody has published a break. But this week's rumors name the curve underneath it, and OpenSSH chose not to wait for proof. Do you regenerate your SSH keys now? First you need to know what the commit actually changes and why the maintainers picked P-384. Then there's the annoying part: some of the places you push keys to reject a P-384 key (AWS and Azure DevOps, for a start). The commands to switch without locking yourself out are at the end.

What the OpenSSH commit changes

The commit is 5b63da2 in openssh-portable. Its message is "upstream: switch default key type generated to ECDSA NISTP384; ok markus@". It touches one file, ssh-keygen.c, and changes three lines:

-#define DEFAULT_KEY_TYPE_NAME "ed25519" +#define DEFAULT_KEY_TYPE_NAME "ecdsa" ... #define DEFAULT_BITS 3072 -#define DEFAULT_BITS_ECDSA 256 +#define DEFAULT_BITS_ECDSA 384 

The other changed line is the $OpenBSD$ revision header. The RSA default stays at 3072 bits.

The commit does not:

  • touch keys you already have. Your ~/.ssh/id_ed25519 is still there after you upgrade.
  • change key exchange. Session encryption has used hybrid post-quantum KEX by default for a while; per the int08h timeline, the default became X25519 + ML-KEM-768 in 2025.
  • ship in any release yet. The latest release on the release notes page is 10.6p2, dated 2026-11-05, and it still defaults to Ed25519. In the HN thread, Miller (posting as djmdjm) mentioned an "openssh-10.7 release in a couple of weeks."

A commenter in that thread summarizing the undeadly.org writeup says two more things changed alongside it: the first-preference signature algorithm is now the ML-DSA 44/Ed25519 hybrid, and initial support for composite ML-DSA 87 / ECDSA P-384 signatures has been added. Those are commits, not a release, so treat them as likely for 10.7 rather than confirmed.

Why P-384 and not something post-quantum

Look at the dates. The NSA put out an advisory on December 2 telling people to move to post-quantum crypto immediately. On December 5, Anthropic and OpenAI published a joint statement saying their researchers "separately found weaknesses in some of the cryptography that protects the internet." They say the weaknesses "are in the underlying mathematics and have always existed" and that the findings "aren't an immediate threat to the public." The statement names no algorithm.

Rumor filled the gap, and the rumor is about elliptic curves. The int08h post, "Yes, P-256 is probably cooked", collects the pieces: Bruce Schneier hearing from "a reliable source that ECC P-256 was broken," one anonymous source also naming Curve25519, and, in the post's summary, Filippo Valsorda reading the NSA advisory as evidence that classical attacks may have weakened P-256 and Curve25519. The word classical matters here: nobody is claiming a quantum computer did this.

The working theory on HN is a cube-root attack, where an N-bit curve drops from N/2 to N/3 bits of security. In the int08h thread, adrian_b did the math: P-256 would fall to about 85 bits and P-384 would keep 128. Ed25519 sits on a 255-bit curve, so it would land near P-256. OpenSSH is betting that if the attack exists and looks like that, 384 bits still leaves you 128.

As for why the default isn't a PQ signature, it comes down to compatibility. In the commit thread, adrian_b pointed out that P-384 works with OpenSSH builds at least nine years old, and sibman noted that even stock /usr/bin/ssh on macOS 27.2.1 "doesn't understand ssh-mldsa44-ed25519 from OpenSSH 10.6."

My take: P-384 is a stopgap, and the maintainers shipped it to buy time. It does nothing against a quantum attacker, and it's still an elliptic curve in a week when elliptic curves are the problem. But it beats an Ed25519 default while the rumor stands, and it works today.

Does this matter for an SSH login key?

Less than for TLS, but more than zero. Your SSH key pair only authenticates you. It doesn't encrypt the session, so the "harvest now, decrypt later" scare doesn't apply to it. As pheggs put it in the int08h thread, "your actual key is not used to encrypt traffic, instead its only used to authenticate you."

The risk is impersonation. If someone can recover your private key from your public key, and your public key is sitting at github.com/<you>.keys for anyone to download, they can push as you or log in to your boxes. Napkin math in the int08h thread puts an 85-bit break at $10m to $100m of compute per key. Nobody is spending that on your homelab, but it's a real threat to a deploy key with push access to a package that a million people install.

Does GitHub, GitLab, AWS or Azure accept ECDSA P-384 keys?

Moving early can bite you here. I went through each provider's current docs:

Service P-384 (ecdsa-sha2-nistp384) Notes
GitHub Likely Docs list id_ecdsa.pub as supported but don't mention curve sizes. Setup guide still says ssh-keygen -t ed25519.
GitLab Yes Docs explicitly accept ecdsa-sha2-nistp384 and nistp521.
Bitbucket Cloud Likely Supports Ed25519, ECDSA, RSA and DSA, ECDSA minimum 256. P-384 not named.
Azure DevOps No RSA only. No Ed25519 either.
AWS EC2 key pairs No RSA, and ED25519 for Linux. ECDSA isn't accepted.
FIDO / YubiKey (-sk) Not yet Only sk-ecdsa-sha2-nistp256 and sk-ssh-ed25519 today. P-384 FIDO support is committed for 10.7, per djmdjm.
1Password SSH agent No One HN user reported it "can't import ecdsa-sha2-nistp384 just yet."

The AWS row is the one that will cause trouble after 10.7 ships. Any provisioning script that runs a bare ssh-keygen -f somekey -N '' and then imports the result into EC2 will start failing, because the default output becomes a key type EC2 rejects. The same goes for anything that pushes keys to Azure DevOps. Grep your Terraform, Ansible and CI scripts for ssh-keygen without -t and pin a type now, before a distro update does it for you.

What broke when someone went fully post-quantum on SSH and Git

For a sense of what happens if you go further, read this write-up (HN) from someone who required X25519MLKEM768 for Git over HTTPS and moved SSH between a Mac and their server to ssh-mldsa44-ed25519. Four things broke:

  1. Apple Git 2.54.0 uses LibreSSL 3.3.6, which has no X25519MLKEM768. They switched to the conda-forge Git 2.56.1 built on OpenSSL 3.6.5.
  2. Even Ubuntu 26.10 ships OpenSSH 10.5p1, which only has the old experimental form of the hybrid signature. They installed 10.6p2 on both ends.
  3. A background sync service had its own PATH and kept picking Apple Git.
  4. Apple's built-in ssh couldn't parse the new algorithm name in the shared SSH config and aborted, even when connecting to unrelated hosts. Their fix was a separate config file plus a wrapper.

Number 4 matters for anyone who edits a global ~/.ssh/config: one unknown algorithm name and every connection fails. P-384 doesn't have this problem, because every client you're likely to meet already knows ecdsa-sha2-nistp384.

How to generate an ECDSA P-384 SSH key and switch safely

Generate the key explicitly. Don't depend on the default:

ssh-keygen -t ecdsa -b 384 -C "you@laptop-2026-12" -f ~/.ssh/id_ecdsa_p384 ssh-keygen -lf ~/.ssh/id_ecdsa_p384.pub # should print "384 SHA256:... you@laptop-2026-12 (ECDSA)" 

Add it next to the old key. Don't replace the old one until the new one works:

ssh-copy-id -i ~/.ssh/id_ecdsa_p384.pub you@server ssh -i ~/.ssh/id_ecdsa_p384 -o IdentitiesOnly=yes you@server true && echo ok 

If a server restricts PubkeyAcceptedAlgorithms, check that P-384 is allowed with sudo sshd -T | grep -i pubkeyacceptedalgorithms. One gotcha: OpenSSH 10.3 fixed a bug where listing any one ECDSA algorithm, such as ecdsa-sha2-nistp384, accidentally allowed all of them. An older server may have been accepting more than its config said.

For GitHub, upload the .pub file, then point Git at the new key:

Host github.com IdentityFile ~/.ssh/id_ecdsa_p384 IdentitiesOnly yes 
ssh -T git@github.com ssh -v git@github.com 2>&1 | grep -i kex # confirm an mlkem KEX was negotiated 

Once every host accepts the new key, remove the old public key from GitHub, from authorized_keys, and from every forge you've forgotten about. If the old key still works somewhere, you haven't finished rotating.

For EC2 and Azure DevOps, P-384 isn't available. If you don't want a 255-bit curve there either, RSA is what's left, and nobody is claiming a break of factoring.

So, regenerate your SSH keys or wait for 10.7?

I'm rotating now for anything with push access or root, and leaving my throwaway VM keys alone. Waiting for 10.7 gains nothing, because a new default only changes keys you haven't generated yet. Moving to P-384 takes ten minutes, and when ssh-mldsa87-p384 shows up in a release your forge supports, you'll rotate again. Rotation should be a routine chore anyway.

Are you regenerating your SSH keys this week, or waiting for the next OpenSSH release to decide for you? And if you think P-384 is the wrong curve to retreat to, I'd like to hear what you'd pick instead.

Sources