Key takeaways
- OpenSSH's developers changed ssh-keygen's default key type from Ed25519 to ECDSA P-384 on December 3, 2026; the commit message gives no reason and the change is not yet in a release.
- No primary source says ECDSA, Ed25519 or RSA is broken: Anthropic, OpenAI and the US government have not named the algorithms their findings affect.
- NIST rates P-384 at 192 bits of security against about 128 for P-256, Ed25519 and RSA 3072, and P-384 is the only elliptic curve in the NSA's CNSA profile for SSH.
ECDSA vs Ed25519 used to be an easy call: Ed25519, the default SSH key type since 2023. It still works everywhere, but on December 3, 2026 OpenSSH's developers switched the default that ssh-keygen generates to ECDSA on the NIST P-384 curve. No primary source says Ed25519, ECDSA P-256 or RSA is broken. For a new key today, ECDSA P-384 is the choice that matches where OpenSSH and the US government's rules are heading.
This comparison is based on the specifications and the projects' own documentation and source code: RFC 8032, RFC 5656, RFC 8709, FIPS 186-5, NIST SP 800-57, the OpenSSH repository and release notes, and GitHub's docs. Nothing here was benchmarked.
What OpenSSH changed, and what it did not say
The commit message is one line: "switch default key type generated to ECDSA NISTP384; ok markus@". It gives no reason. Damien Miller committed it to OpenBSD on December 3, and it reached the portable OpenSSH repository on GitHub on December 5. The diff is three lines in ssh-keygen.c: the default key type goes from ed25519 to ecdsa, and the default ECDSA size goes from 256 bits to 384.
Two neighbouring commits show the direction. One, made a minute later and corrected the next day, reorders the signature algorithms OpenSSH prefers by default: the hybrid of ML-DSA-44 and Ed25519 first, then ECDSA P-384, then Ed25519, then ECDSA P-256. ML-DSA is one of NIST's post-quantum signature schemes. Another, on December 5, adds a second hybrid key type, mldsa87-p384, which pairs ML-DSA-87 with ECDSA P-384 and is not yet on by default.
None of this is in a release (our news report covers the commits). The latest one is OpenSSH 10.6p2, from November 5, 2026, and the repository's version file still carries that number. So ssh-keygen with no arguments on your machine still makes an Ed25519 key, as it has since OpenSSH 9.5 in October 2023. That release picked Ed25519 because its public keys are small. Even the manual is mid-change. In the repository, the ssh-keygen man page had its list of key types updated on December 4 to mark ecdsa as the default, while its description, as of December 5, still says a bare ssh-keygen produces an Ed25519 key.
Why this is happening now
The timing lines up with three statements, none of which names an SSH key type.
On December 2, the NSA, CISA and the Office of the National Cyber Director said that AI companies had disclosed discoveries affecting some cryptography in use, and that these "do not present an immediate and widespread threat to that cryptography." On December 3, Chrome's security team said it intends to stop trusting certificate authority keys that use ECDSA P-256 as of March 15, 2027, and encouraged site operators to move their own server keys off P-256 too. On December 5, Anthropic and OpenAI said that researchers at each company, testing unreleased models, separately found weaknesses in the mathematics behind some widely used cryptography. Our coverage of the labs' statement and of Chrome's P-256 plan has the details.
What is confirmed stops there. The labs did not say which algorithms are affected, how serious the weaknesses are, or which models found them. They did say the findings do not touch NIST's post-quantum standards and are not an immediate public threat. Chrome's post says the move reflects greater urgency and does not describe a flaw in P-256. The OpenSSH commit gives no reason at all.
Everything past that is inference. The int08h blog post "Yes, P-256 is probably cooked", published December 4, argues that P-256 has lost much of its security margin. Its author says plainly that this is reading between the lines, and that how bad it is cannot be known from what is public. Treat it as commentary. It is also not known whether whatever was found applies to Curve25519, the curve family Ed25519 belongs to, or to RSA.
What the commits and Chrome's plan do show is a direction: away from P-256, toward P-384 now and post-quantum hybrids next.
ECDSA vs Ed25519 vs RSA, side by side
| ECDSA P-256 | ECDSA P-384 | Ed25519 | RSA 3072 | |
|---|---|---|---|---|
| Based on | NIST curve P-256 (secp256r1) | NIST curve P-384 (secp384r1) | edwards25519, equivalent to Curve25519 | Integer factorization, no curve |
| SSH algorithm name | ecdsa-sha2-nistp256 |
ecdsa-sha2-nistp384 |
ssh-ed25519 |
rsa-sha2-256, rsa-sha2-512 |
| Specified in | FIPS 186-5, RFC 5656 | FIPS 186-5, RFC 5656 | RFC 8032, RFC 8709 | RFC 8017, RFC 8332 |
| Key size | 256 bits | 384 bits | 256 bits (32-byte public key) | 3,072 bits |
| Signature size | Two 256-bit integers, about 64 bytes | Two 384-bit integers, about 96 bytes | 64 bytes | 384 bytes |
| Hash | SHA-256 | SHA-384 | SHA-512 | SHA-256 or SHA-512 |
| Security strength, per NIST SP 800-57 (2020) | 128 bits | 192 bits | About 128 bits | 128 bits |
| FIPS 186-5 approved | Yes | Yes | Yes, since February 2023 | Yes, at 2,048 bits or more |
| Allowed by the CNSA profile for SSH (RFC 9212) | No | Yes | No | Yes, at 3,072 or 4,096 bits |
ssh-keygen command |
-t ecdsa -b 256 |
-t ecdsa -b 384 |
-t ed25519 |
-t rsa -b 3072 |
The security strengths are NIST's published estimates from May 2020 and RFC 8032's stated target for Ed25519. They predate this week's statements, and nobody has published revised numbers. NIST's own table also carries a footnote that the estimates change once quantum computing becomes practical, which applies to all four columns.
ECDSA P-256 and P-384
ECDSA is the NIST signature algorithm, and RFC 5656 requires every SSH implementation that supports it to handle three curves: nistp256, nistp384 and nistp521. So P-384 is not exotic. Any server that accepts an ECDSA key should accept a P-384 one.
Its known weak spot is operational. Each signature needs a secret number, and FIPS 186-5 notes that too little randomness in that number can reveal the private key. The standard approves a deterministic variant that derives the number from the message and the key instead.
On the "best ECDSA curve" question, the documents are unusually clear. P-384 gets NIST's 192-bit rating against 128 for P-256, and it is the only elliptic curve the NSA's CNSA suite allows for SSH, according to RFC 9212. Chrome's post points sites replacing P-256 certificates toward CNSA 1.0 compliant authorities. That is the likeliest reason OpenSSH jumped to 384 and not 521, though the project has not said so.
Ed25519
Ed25519 is the scheme in RFC 8032: 32-byte public keys, 64-byte signatures, and no per-signature random number to get wrong. It was built for the 128-bit security level, the same class as P-256. NIST approved it in FIPS 186-5 in February 2023. It is not in the CNSA profile for SSH.
No primary source has said anything about Ed25519 this week. OpenSSH still lists it ahead of ECDSA P-256 in the new preference order, and it is half of the hybrid scheme OpenSSH now prefers above everything else.
RSA
RSA rests on a different problem, factoring large numbers, and it is the heaviest of the three: a 3,072-bit key and a 384-byte signature for the same 128-bit NIST rating that the 256-bit curves get. ssh-keygen defaults to 3,072 bits for RSA. A 2,048-bit key is rated at 112 bits, and reaching 192 bits would take 7,680.
The SHA-1 form of RSA signatures, ssh-rsa, has been off by default since OpenSSH 8.8 in September 2021. Existing RSA keys were not affected, because they sign with SHA-256 or SHA-512 where both sides support it.
RSA at 3,072 or 4,096 bits is the other option the CNSA profile allows. Whether this week's findings bear on RSA is unknown.
Where each key type is accepted
OpenSSH accepts all of them, in the order described above. DSA is gone: OpenSSH 10.0 removed it in April 2025.
GitHub's SSH documentation still recommends ssh-keygen -t ed25519, with 4,096-bit RSA as the fallback for older systems. It lists id_rsa.pub, id_ecdsa.pub and id_ed25519.pub as supported public key files and does not accept DSA. GitHub had not changed that advice as of December 5, 2026. Its own published ECDSA host key is a P-256 key.
Hardware security keys are a special case. OpenSSH's FIDO key types are ed25519-sk and ecdsa-sk, and the -b flag is ignored for both. The ECDSA one is fixed to P-256, so there is no P-384 option on a security key today.
Which SSH key type to use in December 2026
If you already have an Ed25519 key, nothing confirmed requires you to replace it this week. It works with current OpenSSH and with GitHub, and no vendor has announced a date for dropping it.
If you are generating a new key anyway, ssh-keygen -t ecdsa -b 384 gives you what a bare ssh-keygen will produce once the change ships. It costs almost nothing: a signature about 32 bytes longer than an Ed25519 one. Our guide on how to generate an SSH key walks through the steps.
Systems that follow the CNSA profile had this settled already: P-384, or RSA at 3,072 or 4,096 bits.
Looking further out, none of the three is a post-quantum algorithm, and post-quantum is where the government, the labs and Chrome are all pushing. OpenSSH's first preference is now a hybrid that pairs a classical signature with a post-quantum one. Our post-quantum cryptography explainer covers those schemes.
The next thing to watch is the OpenSSH release that carries the new default. Its release notes are where the project usually explains a change like this one, and so far it has not.
Frequently asked questions
Is ECDSA secure?
No primary source says ECDSA is broken. Anthropic and OpenAI said on December 5, 2026 that they found weaknesses in some widely used cryptography but did not name an algorithm, and US agencies said the findings are not an immediate and widespread threat. Chrome plans to stop trusting ECDSA P-256 certificate authority keys on March 15, 2027, without describing a flaw.
What is the best ECDSA curve for SSH?
P-384. NIST rates it at 192 bits of security against 128 for P-256, it is the only elliptic curve the CNSA profile for SSH (RFC 9212) allows, and OpenSSH's developers made it the ssh-keygen default on December 3, 2026. Generate one with ssh-keygen -t ecdsa -b 384.
Is ECDSA better than RSA?
It is much smaller for the same rating. NIST puts a 256-bit ECDSA key and a 3,072-bit RSA key at the same 128-bit strength, and an ECDSA P-384 signature is about 96 bytes against 384 bytes for RSA 3072. Both are approved in FIPS 186-5.
Should I replace my Ed25519 SSH key?
Nothing confirmed requires it as of December 5, 2026. Ed25519 keys still work with current OpenSSH and with GitHub, whose docs still recommend them, and OpenSSH still prefers Ed25519 over ECDSA P-256. New keys can be made with ssh-keygen -t ecdsa -b 384 to match the coming default.
Sources
- upstream: switch default key type generated to ECDSA NISTP384 (commit 5b63da2)OpenSSH
- ssh-keygen.c revision logOpenBSD
- ssh-keygen(1) manual pageOpenBSD
- OpenSSH release notesOpenSSH
- OpenSSH 9.5 release notesOpenSSH
- OpenSSH 8.8 release notesOpenSSH
- Joint statement from Anthropic and OpenAI on recent advances in cryptographyAnthropic
- Joint Statement on Recent Advances in Cryptographic and Cybersecurity CapabilitiesCISA
- Keeping HTTPS connections safe in ChromeGoogle
- RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)IETF
- FIPS 186-5: Digital Signature Standard (DSS)NIST
- SP 800-57 Part 1 Rev. 5: Recommendation for Key ManagementNIST
- RFC 5656: Elliptic Curve Algorithm Integration in the Secure Shell Transport LayerIETF
- RFC 8709: Ed25519 and Ed448 Public Key Algorithms for the Secure Shell (SSH) ProtocolIETF
- RFC 9212: Commercial National Security Algorithm (CNSA) Suite Cryptography for Secure Shell (SSH)IETF
- RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2IETF
- Generating a new SSH key and adding it to the ssh-agentGitHub
- Checking for existing SSH keysGitHub
- GitHub's SSH key fingerprintsGitHub
- Yes, P-256 is probably cookedint08h