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

Vendor: GitLab · https://docs.gitlab.com/user/ssh/ · Last reviewed 2026-12-05 · History

Summary

  • GitLab.com: no key exchange list, no post-quantum statement and no SSH server name is published (checked 2026-12-05); the proof records what the server offers.
  • Self-managed with OpenSSH: mlkem768x25519-sha256 and sntrup761x25519-sha512 are offered by OpenSSH 9.9 or later; GitLab does not install or manage OpenSSH.1
  • Self-managed with gitlab-sshd: mlkem768x25519-sha256 is offered from GitLab 18.2.4, and an administrator can set the key exchange, cipher, MAC and user key algorithm lists.12
  • Host keys and user keys are classical: ECDSA, Ed25519 and RSA on GitLab.com; no post-quantum key type is documented (checked 2026-12-05).3
  • GitLab has published nothing on post-quantum algorithms for HTTPS (checked 2026-12-05).

On a Linux package install with gitlab-sshd, set gitlab_sshd['kex_algorithms'] in /etc/gitlab/gitlab.rb and run gitlab-ctl reconfigure.2

Cryptographic operations

GitLab is the SSH server; see GitLab for the deployments.

GitLab.com

  • Host keys: ECDSA, Ed25519 and RSA, with fingerprints and known_hosts lines published.3
  • Key exchange: unpublished (checked 2026-12-05).
  • SSH server software: not named for GitLab.com (checked 2026-12-05). A page on group SSH certificates says the feature “uses the GitLab SSH server instead and doesn’t require OpenSSH configuration”.4
  • Port 443 is available on altssh.gitlab.com.3

User keys

Key type GitLab.com and self-managed default
Ed25519, ed25519-sk, ecdsa-sk allowed
ECDSA allowed
RSA allowed; maximum 8192 bits “due to Go limitations”
DSA forbidden
  • GitLab.com “uses the default SSH key restrictions”; a self-managed administrator can restrict each type and set a minimum length.35
  • Keys that do not meet a restriction are disabled, not removed.5
  • All are classical. A post-quantum user key such as ssh-mldsa44-ed25519 is not documented (checked 2026-12-05).6

Self-managed: OpenSSH

  • The SSH daemon is the one the operating system provides; GitLab “does not install or manage OpenSSH”.1
  • Algorithms are set in /etc/ssh/sshd_config, separately from gitlab-sshd; see OpenSSH.2
  • OpenSSH 9.9 or later offers mlkem768x25519-sha256 and sntrup761x25519-sha512.1

Self-managed: gitlab-sshd

  • gitlab-sshd is “a standalone SSH server written in Go”, part of the gitlab-shell package, and “a lightweight alternative to OpenSSH”. It does not read /etc/ssh/sshd_config.2
  • It is built on golang.org/x/crypto/ssh; see Go. Its defaults are those of the version GitLab Shell is built against.2
  • GitLab Shell on main (commit 9799199, 2026-12-04) requires golang.org/x/crypto v0.58.0.7 That version’s default key exchange list is mlkem768x25519-sha256, curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256, then a SHA-1 group.8
  • Whether FIPS builds offer the hybrid is not documented (checked 2026-12-05).
  • Host key algorithms are derived from the host keys loaded; an RSA host key makes it offer rsa-sha2-256, rsa-sha2-512 and ssh-rsa.2

Versions

Change Version Source
gitlab-sshd offers mlkem768x25519-sha256 GitLab 18.2.4 or later support article1
public_key_algorithms setting GitLab 17.2 docs2
Default algorithms changed; before 18.3 GitLab Shell had hard-coded lists GitLab 18.3 and 18.4 docs2
Hard-coded lists removed, then restored for non-FIPS builds GitLab Shell 14.44.0, 14.45.0 changelog9
golang.org/x/crypto v0.38.0, the first tag with mlkem768x25519-sha256 GitLab Shell 14.43.0 changelog, x/crypto910
ssh_host_keys_dir for fingerprints GitLab 19.7 docs2
  • The mapping from GitLab Shell versions to GitLab versions was not confirmed (checked 2026-12-05).

Configuration

Enabling

  • OpenSSH: use version 9.9 or later and leave the default KexAlgorithms.1
  • gitlab-sshd: upgrade GitLab to 18.2.4 or later.1

Disabling classical algorithms

  • gitlab-sshd settings, in gitlab.rb or Helm values: kex_algorithms, ciphers, macs, public_key_algorithms (Helm: kexAlgorithms, macs, publicKeyAlgorithms, ciphers). Each replaces the default list for that type.2
  • The documentation’s example keeps curve25519-sha256, three ecdh-sha2-* groups and diffie-hellman-group16-sha512 beside mlkem768x25519-sha256; it removes SHA-1 algorithms only.2
  • A name GitLab Shell does not recognise is dropped without error; a mistake in public_key_algorithms stops clients authenticating.2
  • The settings apply only to the port gitlab-sshd listens on.2
  • Host key algorithms cannot be set; exclude the RSA host key with host_keys_glob to stop offering ssh-rsa.2
  • No GitLab.com setting exists in the documentation (checked 2026-12-05).

HTTPS

  • Nothing published on post-quantum key agreement or certificates for Git over HTTPS (checked 2026-12-05).3
  • The GitLab.com settings page describes TLS only for Pages custom domains.3

Vendor commitments

  • Nothing published (checked 2026-12-05).
  • Issue 568265 asked GitLab to enable the hybrid by default in gitlab-sshd; it was filed and closed on 2025-09-05, and the closing reason was not readable (checked 2026-12-05).11

Proofs

The proofs below record what the servers offer.

References

  1. GitLab Support, “Post-Quantum SSH Key Exchange Warning When Connecting to GitLab”, created 2025-11-13, edited 2026-11-25. Lists “GitLab Dedicated” and “GitLab Self-Managed” as impacted offerings and “GitLab instance versions prior to 18.2.4 when gitlab-sshd is enabled”. https://support.gitlab.com/hc/en-us/articles/23586531345820-Troubleshooting-Post-Quantum-SSH-Key-Exchange-Warning-When-Connecting-to-GitLab (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7

  2. GitLab Docs, “gitlab-sshd”. https://docs.gitlab.com/administration/operations/gitlab_sshd/ (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14

  3. GitLab Docs, “GitLab.com settings”. https://docs.gitlab.com/user/gitlab_com/ (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6

  4. GitLab Docs, “User lookup with the OpenSSH AuthorizedPrincipalsCommand”. https://docs.gitlab.com/administration/operations/ssh_certificates/ (accessed 2026-12-05) ↩

  5. GitLab Docs, “Configure SSH key restrictions”. https://docs.gitlab.com/security/ssh_keys_restrictions/ (accessed 2026-12-05) ↩ ↩2

  6. GitLab Docs, “Use SSH keys with GitLab”. https://docs.gitlab.com/user/ssh/ (accessed 2026-12-05) ↩

  7. GitLab Shell, go.mod at commit 9799199645416d1790b8a619acd044c27527db28. https://gitlab.com/gitlab-org/gitlab-shell/-/blob/9799199645416d1790b8a619acd044c27527db28/go.mod (accessed 2026-12-05) ↩

  8. golang.org/x/crypto, ssh/common.go at v0.58.0, commit 8fdf07b3114278fb3b78c1cf1814e08bd851eb4c. https://github.com/golang/crypto/blob/8fdf07b3114278fb3b78c1cf1814e08bd851eb4c/ssh/common.go#L96-L105 (accessed 2026-12-05) ↩

  9. GitLab Shell, CHANGELOG at commit 9799199645416d1790b8a619acd044c27527db28. https://gitlab.com/gitlab-org/gitlab-shell/-/blob/9799199645416d1790b8a619acd044c27527db28/CHANGELOG (accessed 2026-12-05) ↩ ↩2

  10. golang.org/x/crypto, ssh/mlkem.go at v0.38.0, commit aae6e61070421a51c1ba3bd9bba4b9b3979ed488. https://github.com/golang/crypto/blob/aae6e61070421a51c1ba3bd9bba4b9b3979ed488/ssh/mlkem.go (accessed 2026-12-05) ↩

  11. GitLab issue 568265, “OpenSSH 10.1 will issue warnings when the ssh server lacks post-quantum key agreement”. https://gitlab.com/gitlab-org/gitlab/-/work_items/568265 (accessed 2026-12-05) ↩


Edit: GitLab 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.