OpenSSH 10.1+ warns that Gerrit SSH daemon does not use post-quantum key exchange algorithm:
$ git fetch ** WARNING: connection is not using a post-quantum key exchange algorithm. ** This session may be vulnerable to "store now, decrypt later" attacks. ** The server may need to be upgraded. See https://openssh.com/pq.html
See https://www.openssh.com/pq.html
For Gerrit, it requires a change to an upstream library (Apache MINA SSHD). The library is bundled within Gerrit and upgraded as part of upgrading Gerrit itself.
It looks like the kex algo are sntrup761x25519-sha512 (OpenSSH 9.9) and additionally mlkem768x25519-sha256 (OpenSSH 10.0).
- find whether the algo are implemented in Apache MINA SSHD
- get the released version
- find Gerrit version bundling the appropriate lib
Our Gerrit is, as of October 2025, version 3.10.6 which comes with Apache MINA SSHD 2.12.0. The kex it offers:
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
The warning can be disabled using:
Host gerrit.wikimedia.org WarnWeakCrypto=no-pq-kex