NHacker Next on Rails
  • top
  • new
  • best
  • ask
  • show
  • jobs
login
GuidelinesFAQListsAPISecurityLegalApply to YCContact

Hacker News on Rails, powered by React on Rails Pro. Open the source on GitHub by ShakaCode.

Commit 06fc0df

Rendered at 09:05:28 GMT+0000 (Coordinated Universal Time) with Rails + React on Rails RSC.

Post-Quantum GitHub SSH (bauer.codes)

54 points by embeng4096 11h ago | 24 comments

Incipient 6h ago
Wireguard doesn't support anything pqc, github barely, there are a huge list of servers and clients that don't support pqc, and a lot of os' don't have official packages supporting it either?

I'm not sure what people think of a timeline for all of this...but for smaller businesses, it feels like there is little to do at this stage but wait.

frangonf 8h ago
I use glab auth https at work, so I looked into it and since it goes through cloudflare it does the pq hybrid thingy in TLS 1.3.

I took a look now into gh, and turns out gh auth https to api.github.com does X25519 or p-256 only and not hybrid.

Git over ssh can be configured to either host gitlab or github like the post says, for use hybrid exchange.

So my understanding is that the blog recomendation of git over ssh in gh, scoping the non pq key to only this use while we wait for mldsa44 support or similar, seems to be good advice againts HNDL.

throw0101c 8h ago
> That’s probably no longer a good idea, and GitHub doesn’t offer anything PQC for auth. The best we can do for now is use RSA-3072 or P-384.

P-384 seems to be considered 'good enough', but would P-521 be any worse? Pros/cons?

stock_toaster 8h ago
P-521 cons, really only that it is a bit slower.
varispeed 7h ago
Why will notice that?
linsomniac 5h ago
P-384 is supported in more places than P-521
rubyalgo89 10h ago
Tried it, the client side is the holdup, half our images still ship OpenSSH without ML-KEM.
ibotty 10h ago
> Neither OpenSSH 10.6 nor GitHub offers purely PQC options (ML-KEM/FIPS 203). As of 2026-09-22, GitHub offers mlkem768x25519-sha256, so a hybrid PQC scheme is the best we can do for now — in line with the NSA advisory.

This is bullshit. mlkem768x25519-sha256 is stronger than ml-kem-768, in that both have to be broken for it to be broken. It's at least as strong.

Why do people believe that pure post-quantum crypto is better than hybrid?

hxtk 8h ago
NSA's recommendations are always at least somewhat targeted at the rest of the government, and for the government it seems like one driving factor in these choices has been the cost of procuring dedicated crypto hardware for things like smart cards, network interfaces, and TACLANEs.

Some people speculate that NIST picked Rijndael over ChaCha20 for AES (and G-Hash over Poly1305) because their choices are cheaper to implement in hardware, and the government purchases enough hardware to ask for hardware implementations, even though the respective competitors are faster when both are implemented in software. Several of those same people believe Kyber was chosen over NTRU Prime for ML-KEM for the same reasons.

If you believe that line of reasoning, it seems consistent that the NSA would recommend a cipher suite that is easier to implement in hardware by virtue of only needing to support AES, ML-DSA, and ML-KEM instead of adding the burden of supporting additional ciphers.

pmbauer 9h ago
> The NSA wants you to move to PQC in such a rush that it’s saying explicitly, against all its previous recommendations, that you can use the X25519MLKEM768 hybrid key exchange since it’s the most widely available solution.

https://words.filippo.io/nsa-advisory/

... but I have updated the post to reflect your correct observation.

13415 10h ago
I have compiled a new openssh that supports KEM but the keychain on Linux doesn't support these keys so I still can't use ML-KEM 768. My fallback are 8192 RSA keys instead. These are certainly not post-quantum, on the contrary, but they should be safe for now.
hparadiz 10h ago
are you guys just straight up posting your public keys on your blogs or something? cause this level of paranoia is only warranted if that is the case.
mauricioc 9h ago
https://github.com/hparadiz.keys
dantillberg 9h ago
Github started publishing ssh public keys to the world in 2013: https://developer.github.com/changes/2013-01-08-new-user-sco...
hparadiz 9h ago
That's unfortunate. Of course I don't use those keys for my servers.
dantillberg 5h ago
Replying both to you and siblings: I agree, it's a sort of decision that I think made more sense in the zeitgeist of startup opsec in the early 2010s. We were all learning to embrace the idea that we should treat non-secrets _as if_ they were public.

When I discovered this myself (iirc reading [1]) I was pretty flabbergasted. Github users may choose to consider these keys public, but it was not right for Github to decide that for them.

The keys are called "public" to indicate that they're not the secret key. But making them _actually_ public reveals hidden information: anyone can present github-provided public keys to ssh servers to test if the server accepts them. And any keys reused across multiple accounts connect those identities.

1: https://news.ycombinator.com/item?id=9645703 "Auditing GitHub users’ SSH key quality"

aftbit 8h ago
I actually really like this. It's a simple way to verify trust for _any_ github user. You can sign messages with your ssh key or encrypt age messages towards an ssh key.

Of course you have to trust github, and it's better to exchange out of band, but if you want to bootstrap simple encrypted comms with someone you know is a certain github user, it's hard to beat.

hparadiz 8h ago
This is incredibly irresponsible of github to arbitrarily decide this with no opt out.
zackify 8h ago
it's unfortunate that a public key is public?
hparadiz 8h ago
"Public" keys can be used to derive identity, be brute forced in the future, and therefore inherently should be treated like semi secrets. It's like leaking an unsalted password hash.
pmbauer 7h ago
No. Public keys are intended to be public. If your security model requires public keys be private, something has gone horribly wrong.
what 9h ago
Huh? Your public key is meant to be public.