OpenSSH: "switch default key type generated to ECDSA NISTP384"

542 points - yesterday at 12:51 PM

Source

Comments

pippy360 yesterday at 3:21 PM
There's something interesting about to happen to bitcoin. It seems that, because old wallets with huge amounts of bitcoin have known known public keys, bitcoin will have to fork and lock out any wallets that don't transfer their bitcoin to the new fork. An alternative is to do nothing and hope any attacks are just too expensive/infeasible in the next 40+ years.

I'd love to have a conversation about it and hear people's opinions. I tired the bitcoin reddit but it's a difficult place to do that because so many people are heavily invested in it.

Bender yesterday at 2:41 PM
Before compiling this manually or updating your OpenSSH client, back up your existing keys and test manually to all of your oldest servers of each distribution flavor. One should have protected snapshots of all their keys regardless. Append the new key to authorized keys and avoid removing the old entry until it is verified that all systems accept the new key.

In an ideal world the trusts of public keys would be managed by a configuration management system that knows who really owns which public keys and fires alerts when unknown keys are added or added to the wrong account. Mapping should be by the public key itself and not the comment. Or configure PAM to query the SSH public keys from LDAP and cache them securely.

cyphar yesterday at 4:06 PM
I wonder why people aren't switching to Curve448, it has the same benefits of Curve25519 (nothing up my sleeve parameters, implementations are less likely to be buggy, unaffiliated with the NSA). It even has a larger security margin than P-384 (224 bits vs. 192 bits) so even if you assume the undisclosed issue is a classic attack on all elliptic curves it's a better choice.

Sadly it's not widely supported (a lot of internet standards forget to include it) but if you're implementing cryptosystems it's pretty easy to get your hands on and it's even FIPS approved. OpenSSL supports it but based on some very minimal testing it seems browsers won't negotiate it for TLSv1.3.

opk yesterday at 3:36 PM
Would this change also be applicable to GPG. I have a need to create a fresh GPG key anyway (for signing release tarballs) and I see it defaults to Curve 25519. Should I go for NIST P-521 instead? It doesn't seem to support anything equivalent to the mldsa44-ed25519 that openssh 10.6 has, just some "Brainpool" thing with the same bit sizes as NIST.
seethishat yesterday at 2:56 PM
Curious why not RSA 4096 instead? RSA is the oldest and maybe the safest, most well studied option IMO.
ajasmin yesterday at 8:52 PM
1password can't import ecdsa-sha2-nistp384 just yet
throw0101d yesterday at 12:53 PM
The link is pointing to the Github mirror, which can probably take a lot of traffic better than the canonical repo:

* https://cvsweb.openbsd.org/log/src/usr.bin/ssh/ssh-keygen.c

(See 1.512 on Thu, 03 Dec 2026 08:40:32 UTC.)

alpn yesterday at 4:22 PM
currently being hugged to death. archive: https://web.archive.org/web/20261205154533/https://www.undea...

gist is:

  - ssh-keygen(1) now defaults to ECDSA NISTP384.
  - default first-preference signature algorithm has been changed to ML-DSA 44/ed25519 hybrid.
  - initial support for composite ML-DSA 87 / ECDSA P384 signatures has been added.
thisisthenewme yesterday at 7:39 PM
Declarative config + private network is the future. Just switched all my machines to Nixos, moved all to ssh only over Tailscale. Still might have holes somewhere but at least its all easy to think about and manage rather than constant anxiety into potential gaps.
denverllc yesterday at 3:49 PM
Does anyone know if Curve25519 (Montgomery) is also generally affected? I believe that’s what WireGuard uses
cvhc yesterday at 7:42 PM
Is there a plan to support nistp384 for FIDO2 keys? I just checked and it seems only "sk-ssh-ed25519" and "sk-ecdsa-sha2-nistp256" are supported.
bitanarch yesterday at 11:48 PM
Hardware keys like YubiKey will all need to be upgraded :(
asveikau yesterday at 7:27 PM
I wonder on what timeline we will see:

* Backports to OpenBSD stable branch and errata

* New OpenSSH portable release

* Distros adopting previous step

Or is do we end up waiting for a new OpenBSD release -- the 6 months cadence would put it at around May -- before normies start seeing these patches?

jwpapi yesterday at 3:57 PM
https://btcpuzzle.info/puzzles

They didn’t yet crack 2^71 jfi

r2vcap yesterday at 8:28 PM
As cryptography news develops so quickly, I wonder if LTS Linux distros have a place to exist, at least for internet-facing ones.
charlieyu1 yesterday at 7:47 PM
So just use longer keys instead of trying PQC that may or may not be vulnerable is the safe approach
ls65536 yesterday at 4:50 PM
Are updates to host key algorithms covered by this as well?
cassonmars today at 1:19 AM
Can we please add support for a PQ signing algo that is non-NIST? After all that has happened we need to stop with the charade of assuming those options are safe.
nocturn9x yesterday at 2:25 PM
so 256 bit ECC is well and truly dead huh. 1 minute of silence for my favorite curve, you'll always be in my heart Ed25519
lewdwig yesterday at 2:40 PM
Every “which is the best SSH key type?” blog post is now wrong in two directions
seanieb yesterday at 4:44 PM
I don’t love using curves created using mystery numbers from the NSA, thank you.
sidcool yesterday at 6:31 PM
Should we be changing out GitHub SSH keys?
JanisErdmanis yesterday at 5:51 PM
I guess it won't take long until Github will invalidate all my P256 keys ;/
globular-toast yesterday at 7:35 PM
I'm going for RSA-4096. If that gets banned too then we'll know something is up.
JoyfulPanda yesterday at 4:37 PM
didn't we choose ed25519 over ecdsa because we didn't trust how nist came up with their curve or so?
johnea yesterday at 6:12 PM
According the DJ Bernstein, NIST P-384 fails his SafeCurves criteria:

http://safecurves.cr.yp.to/

I'm not an expert, that's why I'd use a Bernstein recommended algorithm.

nodesocket yesterday at 4:31 PM
This is gonna be a nightmare re-generating all ssh keys and revoking old keys from authorized_keys once support for mldsa44-ed25519 authentication drops. I only have a handful of homelab servers and a few AWS EC2 instances and this is gonna royally be a pain in the ass. Imagine large companies who have thousands of servers with thousands of ssh keys.
shevy-java yesterday at 7:39 PM
Was this in response to NSA saying the crypto-world will soon come to its end?
kuschku yesterday at 7:14 PM
Can we also get support for the webauthn sk- versions of p384? Currently they aren't supported
chasil yesterday at 2:38 PM
Would the 521 curve not be more prudent?
ze707ro yesterday at 4:53 PM
[dead]
meindnoch yesterday at 3:13 PM
[dead]
simsbridge yesterday at 6:33 PM
[dead]
tae_yang yesterday at 3:10 PM
wait so read-only just means you can't write files into the mount? tools/ is full of executable bash scripts and running one calls the server for real. readme literally says only use it with MCP servers you trust https://github.com/openai/mcpfs#readme