NewsCrawler.org

Guide to post-quantum SSH settings for GitHub

This guide shows how to check and change SSH settings for GitHub so they use post-quantum cryptography (PQC)[1] and stronger keys. It follows recommendations by Filippo Valsorda and covers two points: key exchange and authentication. To check key exchange, run an ssh command that prints the algorithm; if the output shows mlkem or sntrup, it is fine. For authentication, a second command shows the key type the server accepts, and Ed25519[2] keys or RSA keys under 3072 bits should be replaced.

Neither OpenSSH 10.6 nor GitHub offers purely PQC options, so a hybrid scheme[3] is the best available. As of 22 September 2026, GitHub offers mlkem768x25519-sha256, and the author sets KexAlgorithms in ~/.ssh/config if the system forces weaker defaults in /etc/ssh/crypto.conf. As of 4 December 2026, GitHub still suggests Ed25519 for new authentication keys and offers no PQC option for authentication, so the author recommends RSA-3072 or P-384 and generates an ECDSA key with 384 bits.

The steps include registering the new public key for authentication, and for signed commits also as a signing key, then updating ~/.gitconfig and reloading the SSH agent. A final script reads both settings and prints PASS or FAIL; the author reports PASS with kex=mlkem768x25519-sha256 and ECDSA-384.

Read the original bauer.codesDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page