The OpenSSH logo. Image: OpenSSH / OpenBSD project / Wikimedia Commons, Official OpenSSH logo from openssh.com; editorial use, cropped

OpenSSH, the free software that IT staff and developers use to log in to servers remotely, will stop making Ed25519 keys by default. A change made on December 3 switches its key tool to a type called ECDSA P-384 instead. It is in the version its developers are working on, which will become the next release, and keys people already use keep working.

What changes

An SSH key is a pair of files that proves who you are when you log in to a server, in place of a password. You make one with a tool called ssh-keygen, which comes with OpenSSH on Linux, macOS and Windows. Keys come in several types, each built on different maths. Since 2023, if you don’t pick a type, ssh-keygen has made an Ed25519 key.

Damien Miller, a long-time OpenSSH developer, has changed that default to ECDSA P-384, an older type that almost every SSH server accepts and that the US National Security Agency (NSA) has long required for the government’s most sensitive systems. Markus Friedl, another long-time developer, approved it.

No reason given

The developers’ notes say what changed, not why, and OpenSSH hasn’t explained the move publicly. It came a day after the NSA, the Cybersecurity and Infrastructure Security Agency (CISA) and the White House’s cyber office warned that AI companies had found weaknesses in some of the encryption in use today. Neither the agencies nor the AI firms have said which methods are affected, and nothing in OpenSSH’s notes links the two.

A quantum-resistant key goes first

Neither Ed25519 nor P-384 would stand up to a future quantum computer, a machine powerful enough to crack the maths behind most of today’s keys, OpenSSH says. For that it offers a quantum-resistant key: a combined key that pairs Ed25519 with ML-DSA, a new signature method from NIST, the US standards body, built to withstand quantum computers. It has worked since OpenSSH 10.6 in October.

When you log in, your computer and the server agree which type of key to use. This week OpenSSH put the combined key first in that list whenever both sides support it, with P-384 second and Ed25519 third. Making keys and choosing between them at login are separate settings, so the default for new keys and the first choice at login can differ.

“Moving as quickly as possible”

Some users are in a hurry. On December 3, Cloudflare engineers Christopher Patton and June Slater asked OpenSSH’s developers for a combined key built on P-384 instead of Ed25519, because the company’s older YubiKeys, the small hardware keys its engineers log in with, support P-384 but not Ed25519. They wrote, citing the US warning:

Our organization is moving as quickly as possible to upgrade our OpenSSH deployments to support ML-DSA.

Christopher Patton and June Slater, Cloudflare

OpenSSH added that P-384 version on December 5, but it is not switched on yet. Miller wrote that this depends on testing it against other SSH software:

If we can find other SSH implementations to interop test against then it stands a chance of being enabled by default in the next release.

Damien Miller, OpenSSH developer

What you should do

Nothing for now. Existing Ed25519 keys keep working and servers keep accepting them. The new default only affects keys you make without choosing a type, once the next OpenSSH release reaches you.

  • To keep making Ed25519 keys, name the type: ssh-keygen -t ed25519.
  • For a quantum-resistant key today, update to OpenSSH 10.6 or later on your computer and your servers, then run ssh-keygen -t mldsa44-ed25519. Keep your old key too, for servers that haven’t been updated.
  • To see which version you have, run ssh -V.

Why it matters

Few people choose a key type themselves, so OpenSSH’s defaults decide what most new SSH keys look like. The new order also means computers and servers that both run recent OpenSSH will prefer quantum-resistant keys where they have them, a step towards the switch US and UK agencies are urging.

Sources: OpenSSH changes to the default key type, signature order and ML-DSA with P-384, openssh-unix-dev mailing list, OpenSSH 10.6 release notes, OpenSSH post-quantum page, ONCD, NSA and CISA joint statement.

Frequently asked questions

Do I need to replace my Ed25519 SSH key?

No. Existing Ed25519 keys keep working and servers keep accepting them. OpenSSH has only changed which type ssh-keygen makes when you don’t choose one, and that change reaches you with its next release.

Is ECDSA P-384 safe against quantum computers?

No. Like Ed25519, it relies on elliptic-curve maths that a large enough quantum computer could break. OpenSSH’s post-quantum options are hybrid keys: mldsa44-ed25519, on since OpenSSH 10.6, and mldsa87-p384, added in development code but not yet on by default.

How do I make a post-quantum SSH key?

With OpenSSH 10.6 or later at both ends, run ssh-keygen -t mldsa44-ed25519. Keep your old key for servers that haven’t been updated, as they won’t accept the new type.

Latest Privacy news

More Privacy news