Elith日本語版
Menu

Post-Quantum SSH Setup: How to Make Key Exchange with GitHub Post-Quantum, and How to Think About Authentication Keys

How to check whether your SSH connections to GitHub use a post-quantum hybrid key exchange, based on GitHub and OpenSSH documentation and one developer's setup: the difference between key exchange and authentication, the commands and settings, authentication and commit signing keys, and three checks for companies.

Published
{minutes} min read
6 min read
Abstract 3D illustration on a blue background of a translucent screen-like panel on the left joined by thin light-blue and orange lines to a stack of white boxes on the right, with a white key in front

Following NSA's advisory urging a faster move to post-quantum cryptography (our summary of the NSA advisory), one thing developers can do right away is check their SSH connections to GitHub. This article explains the difference between SSH key exchange and authentication, and walks through the steps to check and configure them. The steps are based on a setup that a developer published on a personal blog on December 4, 2026, checked against official GitHub and OpenSSH documentation (the developer's blog).

Key exchange and authentication are different things

SSH key exchange decides the key that encrypts the session. It is what matters for "store now, decrypt later" attacks, in which encrypted traffic is recorded today and decrypted once a quantum computer exists. Authentication keys confirm who is on the other end of the connection, or who wrote a commit. OpenSSH says that signatures such as RSA and ECDSA can also be broken by a quantum computer, but that there is no equivalent of "store now, decrypt later" for signatures, so traffic that has already been sent is not put at risk later (OpenSSH's post-quantum page).

Diagram of the difference between SSH key exchange and authentication and the flow of steps, headed: GitHub adds hybrid post-quantum SSH key exchange; auth is separate. The subtitle says key exchange protects the session's secrecy and authentication confirms who is on the other end, and that they are separate. At the top are two lines between the user and GitHub. The solid line is key exchange (a hybrid of ML-KEM 768 and X25519), which protects the session and defends against store now, decrypt later. The dashed line is authentication (public keys such as Ed25519), which confirms identity; GitHub's changelog and docs do not mention post-quantum authentication keys. Below are the steps: 1, check key exchange (does kex algorithm in ssh -v show mlkem or sntrup); 2, configure if needed (an example with KexAlgorithms in ~/.ssh/config; GitHub says it is usually not needed; check your policy); 3, plan the move of authentication keys (follow official information; the blog uses P-384 or similar, which is not post-quantum); 4, check signing keys and the agent (register commit signing keys separately and update the agent's keys). The notes at the bottom say GitHub announced ML-KEM support on September 22, 2026, to be enabled on October 14 (github.com and others, varying by region and setup), and that the ONCD-NSA-CISA joint statement names no affected algorithm and says there is no immediate, widespread threat

Figure 1: The difference between SSH key exchange and authentication, and the flow of the steps. Sources: the developer's blog (December 4, 2026), GitHub's changelog (September 22, 2026) and key generation guide, OpenSSH's post-quantum cryptography page, the ONCD-NSA-CISA joint statement (December 2, 2026)

Since 9.0 (April 2022), OpenSSH has used the post-quantum key exchange sntrup761x25519-sha512 by default. Version 9.9 added mlkem768x25519-sha256, which became the default in 10.0 (April 2025) (OpenSSH's post-quantum page). Both are hybrids that combine a post-quantum scheme with the classical elliptic curve X25519.

On September 22, 2026, GitHub announced support for the SSH key exchange mlkem768x25519-sha256 and said it would be enabled on October 14 (GitHub's changelog). It covers github.com and GitHub Enterprise Cloud with Data Residency, except for the U.S. region. GitHub Enterprise Server is due to support it in version 3.24. The author of the blog mentioned above confirmed on December 4 that this method was selected for their connection to GitHub.

Checking the key exchange

In the blog's example, this command shows the key exchange that was actually selected:

ssh -v -o ControlPath=none -T git@github.com 2>&1 | grep "kex: algorithm"

-o ControlPath=none makes SSH open a new connection instead of reusing an existing multiplexed one. If the name after kex: algorithm: starts with mlkem or sntrup, the key exchange is a post-quantum hybrid. To see which key was used for authentication, run the same command with grep "Server accepts key" instead.

Configuring it if needed

GitHub says SSH clients configured to prefer the new method will use it automatically, with no change needed on the user's side. Older clients fall back to an older key exchange automatically.

The blog's author notes that some machines force weaker defaults through system configuration, and that where you cannot change that yourself, for example on a managed laptop, you can put this in ~/.ssh/config:

Host github.com
  KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512

On company-managed machines, or where an SSH policy is in place, we recommend checking with your administrator before overriding the settings yourself (editors' note).

What to do about authentication keys

GitHub recommends Ed25519 for new keys whenever possible, and says the Ed25519 and ECDSA keys it supports will continue to work. New RSA keys uploaded after October 14, 2026, for both authentication and signing, must be at least 3072 bits (GitHub's changelog, GitHub's guide to generating SSH keys).

The blog's author, following a cryptography expert's analysis, thinks it is worth moving off Ed25519 sooner rather than later, and shows how to create a new ECDSA P-384 key and add IdentityFile and IdentitiesOnly yes to ~/.ssh/config. RSA-3072 is also listed as an option. Neither P-384 nor RSA-3072 is post-quantum, however. The author also describes this as the best that can be done for now, because GitHub offers no post-quantum option for authentication.

OpenSSH 10.6 (October 6, 2026) enabled ssh-mldsa44-ed25519, a hybrid signature that combines ML-DSA-44 with Ed25519 (OpenSSH release notes). GitHub's changelog and its key generation guide, however, do not mention post-quantum authentication keys. Making key exchange hybrid is worth doing now as a defense against "store now, decrypt later". Whether to replace Ed25519 authentication keys right away is a decision that should wait for official information from GitHub and others.

Commit signing and ssh-agent

If you sign commits with an SSH key, register the new public key separately on GitHub as a "signing key" as well. In the blog's example, user.signingkey in ~/.gitconfig points to the public key file, with gpg.format = ssh and commit.gpgsign = true. Then close any open connection, add the new key to the agent and check again:

ssh -O exit git@github.com
ssh-add ~/.ssh/id_ecdsa_github

The blog also uses ssh-add -D to drop old keys, but this removes every key from the agent and can affect connections to other services.

Background: the joint statement's assessment

On December 2, 2026, the same day as NSA's advisory, the U.S. Office of the National Cyber Director (ONCD), NSA and CISA issued a joint statement. It says that American companies developing what the statement calls "Super Intelligence (SI)" have disclosed discoveries that affect the security of some cryptography in use, and that the current assessment, made in consultation with those companies, is that they do not present an immediate and widespread threat (joint statement). The statement does not name the affected cryptography. Rather than assuming that a specific algorithm has been broken, it makes sense to start with steps that help right away, such as checking key exchange.

What Japanese companies should check

Companies that manage development environments should check the following:

  1. Whether OpenSSH on developers' machines supports post-quantum key exchange (9.0 or later; 9.9 or later for mlkem768x25519-sha256).
  2. Whether they have checked the key exchange actually selected when connecting to GitHub and other services.
  3. Whether they are planning the move of authentication and commit signing keys while watching official information.

Key exchange can be checked today. For authentication keys, the realistic course is to plan while watching for official support.

Elith builds AI products for enterprises and conducts advanced research, with AI safety and security as its foundation. We share trends in AI safety and security, along with insights from research and practice, through Elith AI Signal. We will continue to read developments in cryptography and development-environment security from primary sources and report on them.

Sources

  1. Post-Quantum GitHub SSH (a developer's personal blog, December 4, 2026)
  2. GitHub, Security improvements for SSH (September 22, 2026)
  3. GitHub Docs, Generating a new SSH key and adding it to the ssh-agent
  4. OpenSSH, Post-Quantum Cryptography
  5. OpenSSH, Release Notes
  6. ONCD, NSA and CISA, Joint Statement from ONCD, NSA, and CISA on Recent Advances in Cryptographic and Cybersecurity Capabilities (December 2, 2026)