logoalt Hacker News

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

204 points • by throw0101d • today at 12:51 PM • 91 comments • view on HN

Comments

pippy360 • today 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.

➕ show 7 replies
Bender • today 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.

➕ show 2 replies
cyphar • today 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.

➕ show 1 reply
opk • today 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.

➕ show 1 reply
throw0101d • today 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.)

seethishat • today at 2:56 PM

Curious why not RSA 4096 instead? RSA is the oldest and maybe the safest, most well studied option IMO.

➕ show 1 reply
nodesocket • today at 4:31 PM

This is gonna be a nightmare re-generating all ssh keys and revoking old keys from authorized_keys. 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.

nocturn9x • today 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 • today at 2:40 PM

Every “which is the best SSH key type?” blog post is now wrong in two directions

jwpapi • today at 3:57 PM

https://btcpuzzle.info/puzzles

They didn’t yet crack 2^71 jfi

denverllc • today at 3:49 PM

Does anyone know if Curve25519 (Montgomery) is also generally affected? I believe that’s what WireGuard uses

➕ show 1 reply
chasil • today at 2:38 PM

Would the 521 curve not be more prudent?

➕ show 3 replies
meindnoch • today at 3:13 PM

[dead]

tae_yang • today 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