OpenSSH Switches Default Ssh-Keygen Keys to ECDSA NIST P-384

OpenSSH developers changed the default key type for ssh-keygen from Ed25519 to ECDSA on the NIST P-384 curve in a commit dated December 3, 2026. The change raised the default ECDSA key size from 256 to 384 bits; it is in the development tree and has not yet shipped in a release.

OpenSSH developer Damien Miller committed the change to ssh-keygen.c on December 3. He switched the DEFAULT_KEY_TYPE_NAME constant from ed25519 to ecdsa and DEFAULT_BITS_ECDSA from 256 to 384. The commit message read, “switch default key type generated to ECDSA NISTP384; ok markus@”. P.K. Sharma reported. The same day, a second commit moved the post-quantum hybrid ssh-mldsa44-ed25519 to the top of the default signature algorithm preference list, placing it above ECDSA P-384 and Ed25519.

Sulat AI & Tech News reported. On December 5, the project added a stronger hybrid, ssh-mldsa87-p384, but marked it “not yet enabled by default”. I10X reported. The patch modifies two constants: -#define DEFAULT_KEY_TYPE_NAME ed25519 +#define DEFAULT_KEY_TYPE_NAME ecdsa -#define DEFAULT_BITS_ECDSA 256 +#define DEFAULT_BITS_ECDSA 384. DEV Community noted.

OpenSSH switches default key type to ECDSA NISTP384 — TechPulse Daily

What changes for users

The new default only affects keys generated by a bare ssh-keygen command once the next OpenSSH release ships. Existing Ed25519 keys continue to work. ssh-keygen -t ed25519 explicitly creates Ed25519 keys. MadHacker noted. A bare ssh-keygen will now propose ~/.ssh/id_ecdsa instead of ~/.ssh/id_ed25519.

This can break provisioning scripts that assume the old filename. DEV Community measured. Running ssh-keygen -t ecdsa without -b now yields a 384-bit key, not the previous 256-bit P-256 default. Tproger explained. Ed25519 had been the default since OpenSSH 9.5 in October 2023. Sulat AI & Tech News reported.

3D OpenSSH pufferfish agent holding a key beside a glowing split lattice key on a dark navy grid
Photo: Sulat

Larger keys affect performance

An ECDSA P-384 public key file is 211 bytes. Ed25519 is 87 bytes. The public key is 2.43× larger. The private key grows from 387 to 602 bytes (1.56×). Signatures grow from 294 to 476 bytes (1.62×). DEV Community benchmarked. For interactive SSH the difference is negligible.

But high connection rates or constrained hardware may feel it. The commit is in source code, not in a release. The project’s official page identifies Portable OpenSSH 10.6p2, released on 5 November 2026, as the most recent version. That is 28 days prior to the commit date. P.K. Sharma noted.

Signature order and post-quantum hybrids

The December 3 signature-order commit rearranged the default client preference to: ssh-mldsa44-ed25519 first, ecdsa-sha2-nistp384 second, and plain ssh-ed25519 third. Sulat AI & Tech News observed. A fresh install running ssh-keygen -A on the December 5 code generates five host keys: RSA 3072, ECDSA 384, Ed25519, and the two hybrids mldsa44-ed25519 and mldsa87-p384. The December 1 build produced four, with ECDSA at 256 bits.

Sulat AI & Tech News showed. The newer mldsa87-p384 hybrid uses the ML-DSA-87 parameter set from the NSA’s CNSA 2.0 table. It follows the IETF composite signatures draft that Miller edits. Sulat AI & Tech News reported. On 2 December the NSA told operators of national security systems to expedite their transition to post-quantum cryptography. MLQ noted.

Openssh key title
Photo: i10x.ai

Industry abandons 256-bit curves

The commits landed the day after a joint NSA, CISA, and ONCD advisory urged immediate transition to post-quantum cryptography. MadHacker noted. That same week, Google Chrome announced it will stop trusting ECDSA P-256 CA keys on March 15, 2027. Tproger reported.

Mozilla plans to promote P-384 where hybrid key exchange is unavailable. Let’s Encrypt recommends ACME clients default to 384-bit ECDSA keys. Sulat AI & Tech News added. OpenSSH’s shift arrives during a rapid, cross-industry abandonment of 256-bit elliptic-curve cryptography across browsers, networking tools, and security infrastructure. MLQ noted.

Server-side behavior remains the same

This patch does not touch any ssh or sshd files. It does not change which host key algorithm a client prefers, what a server accepts, or how session keys are agreed. P.K. Sharma confirmed. The current server configuration manual already lists ecdsa-sha2-nistp384 among default accepted public key signature algorithms.

It has been supported since OpenSSH 5.7. ECDSA P-384 is not a post-quantum algorithm. Like Ed25519, it can be broken by a large enough quantum computer. MadHacker stated. FIDO hardware keys still offer only ed25519-sk and ecdsa-sk. No post-quantum hardware-key option exists in the current man page. I10X noted.

AI
Photo: Tproger

Operators should check key generation scripts

Run ssh -V to check the OpenSSH version in your fleet. The default change is not in the current release 10.6p2. Sesame Disk advised. Search onboarding docs, cloud-init templates, CI images, and setup scripts for bare ssh-keygen calls. Add an explicit -t flag where the key type matters: -t ed25519 to stay on Ed25519, -t ecdsa -b 384 to adopt the new default early.

Photo of author

Technology Desk

Technology Desk at Archyde.

‘Avengers: Secret Wars’ Begins Principal Photography at Pinewood Studios for December 2027 Release’

Dr. V. Surya Prakasa Rao Warns Men Over 45 Not to Ignore Chest Pain During Exercise