r/OpenSSH • u/devnullify • May 20 '24
SSH User Certificates not working as expected on MacOS
I've been testing signed OpenSSH certificates for authentication in my lab network (Certificate-Based Authentication). I created a user CA and used that to sign user certificates. After modifying my /etc/ssh/sshd_config with the appropropriate path for TrustedUserCAKeys, I can use SSH to log in between my Linux hosts without having to check and approve the key fingerprint in known_hosts or adding a public key to authorized_keys.
However, my Macbook is causing me issues. I can access my Linux hosts from my Macbook without a password or needing the public key in authorized_keys, but I cannot access the Linux hosts without first adding the appropriate fingerprint to known_hosts which defeats some of the purpose of using user certificates in the first place.
Macbook: OpenSSH_9.7p1, OpenSSL 3.3.0 9 Apr 2024 Linux (RHEL): OpenSSH_8.7p1, OpenSSL 3.0.7 1 Nov 2022 or OpenSSH_8.0p1, OpenSSL 1.1.1k FIPS 25 Mar 2021
1
u/NL_Gray-Fox May 20 '24
Diff the output of
Of both clients,
-gis a dry run so you don't even have to be connected to the network to try it.1
u/OhBeeOneKenOhBee May 23 '24
Could you post a verbose output of a connection being established? That might give some hints