Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Vendor: GitHub · https://docs.github.com/en/authentication/connecting-to-github-with-ssh · Last reviewed 2026-12-05 · History

Summary

  • Key exchange: two hybrid algorithms are offered, sntrup761x25519-sha512 and mlkem768x25519-sha256. They are default: a client that prefers one gets it with no configuration.12
  • Neither is offered in the United States region of GHE.com.12
  • Host keys and user keys are classical. No post-quantum key type is documented or announced (checked 2026-12-05).
  • Classical key exchange cannot be disabled on GitHub’s side. A user can restrict their own client.
  • diffie-hellman-group-exchange-sha256 and the SHA-1 ssh-rsa signature type are removed on 2027-01-13.2

2027-01-13: diffie-hellman-group-exchange-sha256 and the SHA-1 ssh-rsa signature type are removed.2

To see what was negotiated, run ssh -v git@github.com exit 2>&1 | grep 'kex: algorithm:'.1

Cryptographic operations

GitHub is the SSH server on github.com and GHE.com; for the self-hosted product see Enterprise Server.

Key exchange

Algorithm Kind State Since
sntrup761x25519-sha512, also sntrup761x25519-sha512@openssh.com hybrid default 2025-09-171
mlkem768x25519-sha256 hybrid default 2026-10-142
diffie-hellman-group-exchange-sha256 classical removed on 2027-01-13 2
  • The full classical list is unpublished (checked 2026-12-05); see the proof.
  • Older clients “should fall back to an older key exchange algorithm”.1
  • United States region: “Only FIPS-approved cryptography may be used within the US region, and this post-quantum algorithm isn’t approved by FIPS” (about sntrup761x25519-sha512).1 The 2026 changelog excludes it for mlkem768x25519-sha256 without a reason.2

Host keys

Key type State
ssh-ed25519 (Ed25519) classical
ecdsa-sha2-nistp256 (ECDSA P-256) classical
ssh-rsa (RSA) classical
DSA “closing down”; no known_hosts entry published

Fingerprints are also in the ssh_keys field of the REST API meta endpoint.34

User keys

  • Ed25519, RSA, ECDSA, and hardware keys via ed25519-sk (ECDSA fallback). All classical.5
  • DSA (ssh-dss) removed 2022-03-15; RSA keys with valid_after on or after 2021-11-02 must use SHA-2.5
  • RSA keys uploaded after 2026-10-14 “must be at least 3072 bits in size, both for signing and authentication”.2
  • SHA-1 ssh-rsa signatures, including ssh-rsa-cert-v01@openssh.com certificates, removed 2027-01-13.2
  • Post-quantum user authentication needs a key type such as ssh-mldsa44-ed25519, which OpenSSH supports; GitHub has not said whether it will accept one (checked 2026-12-05).

SSH certificate authorities

  • Enterprise Cloud verifies OpenSSH user certificates against a trusted CA, including validity period;6 accepted CA key types are unlisted (checked 2026-12-05).

Versions

Change Date Applies to Source
sntrup761x25519-sha512 default 2025-09-17 github.com, GHE.com except the United States region 1
mlkem768x25519-sha256 default 2026-10-14 github.com, GHE.com except the United States region 2
New RSA keys must be 3072 bits or more 2026-10-14 github.com, GHE.com 2
Brownouts of ssh-rsa (SHA-1) and diffie-hellman-group-exchange-sha256 2026-11-04 and 2026-12-09 github.com, GHE.com 2
ssh-rsa (SHA-1) and diffie-hellman-group-exchange-sha256 removed 2027-01-13 github.com, GHE.com 2

Configuration

  • Enabling: nothing on GitHub’s side; the client must support and prefer a hybrid algorithm. GitHub names OpenSSH 9.0 or newer for sntrup761x25519-sha512. Check support with ssh -Q kex.1
  • Disabling classical: no GitHub setting (checked 2026-12-05). A user can set OpenSSH KexAlgorithms; see OpenSSH. A hybrid-only client cannot connect to the United States region of GHE.com. No post-quantum host or user key exists, so classical authentication stays.

Vendor commitments

  • 2025-09-15, no date: “As the SSH libraries we use begin to support additional post-quantum algorithms, including ones that comply with FIPS, we’ll update you on our offerings.”1
  • 2026-09-22: “All Ed25519 and ECDSA keys we support are strong, secure, and will continue to work for the indefinite future.”2

Proofs

References

  1. GitHub Blog, “Post-quantum security for SSH access on GitHub”, 2025-09-15. https://github.blog/engineering/platform-security/post-quantum-security-for-ssh-access-on-github/ (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9

  2. GitHub Changelog, “Security improvements for SSH”, 2026-09-22. https://github.blog/changelog/2026-09-22-security-improvements-for-ssh/ (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14

  3. GitHub Docs, “GitHub’s SSH key fingerprints”. https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints (accessed 2026-12-05) ↩

  4. GitHub Docs, “REST API endpoints for meta data”. https://docs.github.com/en/rest/meta/meta (accessed 2026-12-05) ↩

  5. GitHub Docs, “Generating a new SSH key and adding it to the ssh-agent”. https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent (accessed 2026-12-05) ↩ ↩2

  6. GitHub Docs, “About SSH certificate authorities”. https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-git-access-to-your-organizations-repositories/about-ssh-certificate-authorities (accessed 2026-12-05) ↩


Edit: GitHub SSH

If you give an email address it is recorded publicly as the author of the commit, and GitHub will link the commit to your account if that address belongs to one.

Edits are reviewed before they appear. By submitting you release your contribution under CC BY-SA 4.0. Read the editorial guidelines first.

This site uses Just the Docs, a documentation theme for Jekyll.