checkmypqc.com

Home › Fix guides › Enable post-quantum SSH (mlkem768x25519-sha256) on Go (golang.org/x/crypto/ssh)

Enable post-quantum SSH (mlkem768x25519-sha256) on Go (golang.org/x/crypto/ssh)

How to offer the hybrid post-quantum key exchange mlkem768x25519-sha256 on Go (golang.org/x/crypto/ssh), from the vendor's documentation, checked on December 4, 2026.

Steps

  1. Check the requirements: golang.org/x/crypto v0.38.0+ and Go 1.24+.
  2. Apply the configuration below.
  3. Reload the service and check it again on checkmypqc.com.

Recommended now: post-quantum first, classical kept

mlkem768x25519-sha256 is first in the default key exchange list. A server that sets Config.KeyExchanges keeps its own list: add ssh.KeyExchangeMLKEM768X25519.

Later: require post-quantum

This refuses every client without ML-KEM, such as OpenSSH before 9.9 and many libraries. Check who connects before you switch.

server.go

cfg := &ssh.ServerConfig{
    Config: ssh.Config{
        KeyExchanges: []string{ssh.KeyExchangeMLKEM768X25519},
    },
}

Vendor documentation: https://go.googlesource.com/crypto/+/refs/heads/master/ssh/common.go · checked December 4, 2026

Findings

After any change, check the service again. A change that never reaches the server (a load balancer or CDN in front, a configuration file that is not loaded) is the most common reason a fix does not show.

Updated December 4, 2026 · Open the interactive version

Related

Check your site

Free, no account: see in seconds whether browsers get post-quantum key exchange with your website or SSH server.

Check a service

Ask your AI assistant: checkmypqc.com runs a public MCP server at https://checkmypqc.com/mcp.