Interview Prep/Linux/SSH, sudo and authentication

`ssh` with a FIDO2 key fails: `Confirm user presence for key ED25519-SK` never appears and you get `sign_and_send_pubkey: signing failed for ED25519-SK`.

AdvancedTroubleshootingSSH, sudo and authentication
Answer

Likely causes → The security key isn't detected (USB/udev permissions), missing libfido2/middleware, or the key requires a PIN (verify-required) that wasn't supplied.

Diagnose →

ssh -vvv host 2>&1 | grep -iE 'sk|fido'
fido2-token -L 2>/dev/null
ls -l /dev/hidraw*

Fix → Install libfido2, fix udev rules so the user can access the hidraw device, touch the key when prompted, or enter the PIN.

Prevent → Document FIDO2 setup per OS; keep a backup key enrolled.

All Linux questions Roadmap: Linux

More on SSH, sudo and authentication