Stehe gerade etwas, nein ziemlich, auf dem Schlauch.

SSH mit FIDO2, speziell Yubikey.

Erzeugen und kopieren des Keys auf den Server läuft problemlos, aber beim Login per SSH wird nur das Passwort abgefragt. Der FIDO2 wird ignoriert.

Die authorized_keys auf dem Server schaut ok aus, der neue Key ist anscheinend korrekt eingetragen.

Das Logfile hilft mir nicht wirklich weiter.

debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: id_ed25519_sk ED25519-SK SHA256:******************** explicit authenticator agent
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password


#linux #ssh #fido2

Elias Probst hat dies geteilt.

Als Antwort auf zeitverschreib ⁂

Right off the bat, I would suggest checking your file and directory permissions on the destination. The destination user's .ssh directory needs to be user only , so permission 1700.

Next I would check to ensure they user's .ssh/authorized_keys file has the correct contents... A lot of users accidentally put their private key in there instead of their public key.