So right now between MacOS and Ubuntu LTS and Ubuntu Latest – SSH PQ keys are a mess. MacOS and Ubuntu Latest have the postfix @openssh.com appended to the key type name which is rejected by Ubuntu LTS and now OpenSSH has removed that postfix in the latest source code. And to make matters worse, the MLDSA 44 key should really be upgrade to 87 which I believe I read that OpenSSH is also trying to work on now.
Anyway, to compile the latest OpenSSH on MacOS to get the latest key types for your servers in the future you can use this script below.
SSH PQ: fossjon/2026/12/04/ssh-pq/
#!/bin/bash
SSLTAR="$(realpath "$(ls -td openssl-*.gz 2>/dev/null | head -n 1)")"
SSHTAR="$(realpath "$(ls -td openssh-*.gz 2>/dev/null | head -n 1)")"
tar -xzvf "${SSLTAR}"
tar -xzvf "${SSHTAR}"
SSLDIR="$(realpath "$(ls -td openssl-*/ 2>/dev/null | head -n 1)")"
SSHDIR="$(realpath "$(ls -td openssh-*/ 2>/dev/null | head -n 1)")"
cd "${SSLDIR}"
./Configure --prefix="${PWD}/out" --openssldir="${PWD}/out/ssl" && make && make install
cd -
cd "${SSHDIR}"
./configure --with-ssl-dir="${SSLDIR}/out" CPPFLAGS="-I${SSLDIR}/out/include" LDFLAGS="-L${SSLDIR}/out/lib" && make
cd -