logoalt Hacker News

keito • today at 9:59 PM • 1 reply • view on HN

On macOS, even though the OpenSSH version is recent, the key exchange algorithm selection is overridden in an Apple-installed /etc/ssh/crypto.conf to favor ecdh-sha2-nistp256 over mlkem768x25519-sha256, which is the upstream OpenSSH default. (I believe the override also suppresses the non-post quantum warning described here: https://www.openssh.org/pq.html).

You can override it back in your ~/.ssh/config with

  Host *
    KexAlgorithms ^mlkem768x25519-sha256

Replies

Dagonfly • today at 10:30 PM

Are you sure? MacOS 27 shows for me:

   > ssh -V
   OpenSSH_10.3p1, LibreSSL 3.3.6

   > ssh -v [email protected] 2>&1 | grep -i "kex: algorithm"
   debug1: kex: algorithm: mlkem768x25519-sha256