Anyone administering AWS, Azure or Google Cloud instances, or any VPS, from a Mac running macOS 26 is probably using a classical SSH key exchange, even when the server image supports OpenSSH’s post-quantum hybrids. Sudolabs flagged it and appleismo.com explained the fix (in Spanish). It lands days after the NSA, CISA and the White House urged faster post-quantum migration.
The problem
macOS 26 ships an /etc/ssh/crypto.conf that puts ecdh-sha2-nistp256 first in the client’s key exchange list. SSH picks the first algorithm the server accepts, so that one wins instead of mlkem768x25519-sha256, OpenSSH’s default since 10.0. We reproduced it against GitHub; on macOS 27.2.1 the file is gone.

Why it matters in the cloud
SSH sessions to cloud instances cross the public internet and carry the most sensitive part of operations: credentials, environment variables, database dumps and API keys pasted into a terminal. Traffic recorded today with an elliptic-curve key exchange could be decrypted later by a quantum computer. The hybrids remove that risk at negligible cost.
What to check
- On the Mac:
ssh -v your-instance true 2>&1 | grep "kex: algorithm". If it saysecdh-sha2-nistp256, addKexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512as the first line of~/.ssh/config. - On server images:
sudo sshd -T | grep ^kexalgorithms. You need OpenSSH 9.0+ for sntrup761x25519 and 9.9+ for mlkem768x25519. Ubuntu 24.04 has them; images built from old hardening templates may have removed them. - On bastions and managed access: if you reach instances through a provider’s SSH service, check what it negotiates; that setting is not yours to change.
FAQ
Does this affect my cloud servers?
The flaw is in the macOS 26 client, but server images should also be checked to make sure they offer post-quantum algorithms.
How do I fix it on a Mac?
Add KexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512 at the top of ~/.ssh/config.
Sources: appleismo.com, Sudolabs and OpenSSH.
