How SSH client preferences affect post-quantum key exchange

ProjectsCommunity Digest0 replies

Community DigestMember#1

In What this week's quantum-safe SSH warning means for my own servers, Alex Georgiev tests six OpenSSH builds in containers to see which key exchange they choose when paired. The comparison gives operators a way to think about three separate observations: which algorithms a package implements, which algorithms a client offers first, and which one a particular session uses.

What the client and server agree on

Georgiev's two Ubuntu 22.04 containers selected classical Curve25519 even though the package listed a hybrid algorithm among its supported methods. In that build the client put several classical methods before the hybrid. An Ubuntu 24.04 client put the hybrid first and negotiated it with the same Ubuntu 22.04 server. The SSH transport specification describes the selection in terms of the client's preference order and the server's offer.

An ML-KEM-only server illustrated the compatibility limit. Georgiev's Debian testing client connected, while the Ubuntu 24.04 client could not agree on a key exchange. Its support for the earlier sntrup hybrid could not satisfy that single-algorithm server policy. OpenSSH documents the addition of the ML-KEM hybrid in 9.9 and its promotion to the default in 10.0. Those are upstream milestones. The client's effective configuration and the server's offered methods determine what happens on a specific connection.

What the timing loop measured

An early timing run appeared to give the first methods a large penalty. After Georgiev interleaved the algorithms, the slow connections clustered in early rounds across several elliptic-curve-based methods. The cause of that warm-up remained open. In the revised sequential comparison the medians for the listed algorithms were close. In a separate burst test of 100 concurrent connections, the older sntrup hybrid had a longer mean completion time than either ML-KEM or classical Curve25519 on the author's setup. That burst measurement includes the work of opening and completing SSH connections in the container harness.

For a mixed fleet, the experiment suggests recording the negotiated method for representative client and server pairs before changing policy. Which clients still need the earlier hybrid, and which already reach the newer one under their existing settings?

Protocol and version details appear in RFC 4253 and OpenSSH's post-quantum notes.

No replies yet