The ssh that ships with macOS 15.7.3 is OpenSSH_9.9p2 with LibreSSL 3.3.6, and its default key exchange list starts with two hybrid post-quantum methods: sntrup761x25519-sha512 and mlkem768x25519-sha256. So the session keys of your Git pushes and server logins are already protected against “record now, decrypt later” with any server that supports either method. What the built-in OpenSSH cannot do is make the new mldsa44-ed25519 keys that this week’s advice points to: ssh-keygen -t mldsa44-ed25519 answers unknown key type. Those keys need OpenSSH 10.6, which on a Mac means Homebrew.
The takeaway: you do not need to touch anything for post-quantum key exchange. Rotate to ML-DSA keys only for servers you run on OpenSSH 10.6 or later, and keep ed25519 for GitHub until GitHub says it accepts the new type.
Why we did this: the studio’s Macs push to GitHub and log in to our VPS every day, and the Nix and QuitAll builds come from those Macs. After Filippo Valsorda’s reading of the NSA advisory (2 Dec 2026) recommended “update OpenSSH to 10.6 and rotate to ssh-mldsa44-ed25519 keys”, we checked what a stock Mac actually has.
What we checked
We ran the system OpenSSH tools on our M1 lab Mac (macOS 15.7.3) and printed the version, the algorithms each tool supports (ssh -Q), and the defaults it would use with no config file (ssh -F none -G). Then we tried to generate an ed25519 key and an mldsa44-ed25519 key, and threw both away. No server was contacted. The same Mac also had an older Homebrew OpenSSH, which we checked the same way.

Real output from our M1 lab Mac: hybrid post-quantum key exchange comes first; ML-DSA keys are unknown.
Key exchange is already post-quantum
The default kexalgorithms line from the built-in client, in order:
sntrup761x25519-sha512
sntrup761x25519-sha512@openssh.com
mlkem768x25519-sha256
curve25519-sha256
curve25519-sha256@libssh.org
ecdh-sha2-nistp256 ... diffie-hellman-group14-sha256
SSH picks the first method in the client’s list that the server also supports, so with any server on OpenSSH 9.0 or later you get a hybrid post-quantum exchange. Two details matter here:
- OpenSSH 9.9 still prefers sntrup761 (Streamlined NTRU Prime plus X25519). OpenSSH 10.0 moved ML-KEM (
mlkem768x25519-sha256, the FIPS 203 scheme) to the front; the 10.0 release notes call it “used by default for key agreement”. Both are hybrids: an attacker has to break the classical X25519 part as well. - GitHub added
mlkem768x25519-sha256on github.com from 14 Oct 2026. Whatever GitHub offers from your list, a 9.9 client has a post-quantum option it can agree on.
To see what one connection actually used, ask the client to be verbose and look for the kex: algorithm line:
ssh -v git@github.com 2>&1 | grep "kex: algorithm"
If that line names curve25519-sha256, the server is older than OpenSSH 9.0 (or limits its list), and that is the box to upgrade, not your Mac.
ML-DSA keys need OpenSSH 10.6
Key exchange protects the session; the key pair in your .ssh folder proves who you are. That signature is still ed25519, ECDSA or RSA on a stock Mac. The post-quantum key type arrived in steps:

OpenSSH’s post-quantum features by release, from the release notes.
| OpenSSH | Released | What changed | Source |
|---|---|---|---|
| 9.0 | 8 Apr 2022 | sntrup761x25519-sha512 becomes the default key exchange |
release notes |
| 9.9 | 19 Sep 2024 | adds mlkem768x25519-sha256 |
release notes |
| 10.0 | 9 Apr 2025 | ML-KEM hybrid is the default key exchange | release notes |
| 10.4 | 6 Jul 2026 | experimental mldsa44-ed25519 keys, not enabled by default |
release-10.4 |
| 10.6 | 6 Oct 2026 | ssh-mldsa44-ed25519 enabled, no more @openssh.com suffix; sshd’s new WarnWeakCrypto logs clients without post-quantum key agreement |
release-10.6 |
The type is a composite of ML-DSA-44 (FIPS 204) and Ed25519, described in draft-miller-sshm-mldsa44-ed25519-composite-sigs: a signature is valid only if both halves verify. Expect much bigger keys than today’s: in FIPS 204 an ML-DSA-44 public key is 1,312 bytes and a signature 2,420 bytes, against 32 and 64 bytes for Ed25519. For comparison, the ed25519 key we generated had a 90-character public key line and a 399-byte private key file, and an SSH signature over a short file (the SSHSIG format Git uses for commit signing) was 294 characters.
Keys made with 10.4’s experimental support used the old @openssh.com name; regenerate them on 10.6 rather than carrying them over.
Getting OpenSSH 10.6 on a Mac
Apple ships OpenSSH as part of macOS, so the system copy changes only with an OS update. The usual route is Homebrew, whose openssh formula is at 10.6p2 and builds against OpenSSL rather than LibreSSL:
brew install openssh # or: brew upgrade openssh
which -a ssh # Homebrew's path should come first
ssh -V # expect OpenSSH_10.6p2
ssh -Q key | grep mldsa # the new key type should be listed
One trap we found on our own Mac: Homebrew’s OpenSSH was already installed but had not been upgraded, and it reported OpenSSH_9.9p2, OpenSSL 3.5.9. It refused mldsa44-ed25519 exactly like the system copy. “I use Homebrew’s ssh” is not the same as “I have 10.6”; check ssh -V.
Then point the tools that do not read your PATH at the new binary. Git, for example, can be told directly:
git config --global core.sshCommand /opt/homebrew/bin/ssh
Two more things to check before you depend on the new key:
- The agent. The
ssh-agentthat macOS starts for you belongs to the system OpenSSH build. Afterssh-add, runssh-add -land confirm the new key is listed; if it is not, run Homebrew’s agent for that key or load the key per connection withIdentityFile. - GUI clients. Git clients and IDEs that bundle their own SSH library will not read the new key type until their library supports it.
Where to use the new keys, and where not yet
Both ends need OpenSSH 10.6 for an ssh-mldsa44-ed25519 login: your client to sign, the server to verify. In practice:
- Your own servers on OpenSSH 10.6 or later: generate the key with
ssh-keygen -t mldsa44-ed25519, add it toauthorized_keysnext to the existing ed25519 key, test a login, then retire the old one. Keep a second session open while you switch. - GitHub: its September changelog adds ML-KEM key exchange, retires
ssh-rsaanddiffie-hellman-group-exchange-sha256(removal on 13 Jan 2027), and recommends Ed25519 for new keys. It says nothing about accepting ML-DSA user keys or signing keys, so keep ed25519 there for login and commit signing. - Servers you cannot upgrade: the key exchange is what protects recorded traffic. An older server that only offers
curve25519-sha256is the real gap, more than the key type on your Mac.
What to check on your own Mac
/usr/bin/ssh -V
ssh -V
ssh -F none -G example.com | grep -E "^kexalgorithms"
ssh -v git@github.com 2>&1 | grep "kex: algorithm"
ssh-keygen -t mldsa44-ed25519 -f /tmp/pqtest -N ""
If the last command says unknown key type, the ssh-keygen on your PATH is older than 10.4; you want 10.6. Delete /tmp/pqtest* afterwards.
For the TLS side of the same advisory, see what URLSession and CryptoKit do on iOS 26 and how to turn on X25519MLKEM768 in nginx.



