Interview Prep/Linux/SSH, sudo and authentication

A user's RSA key stopped working against a new server: the server log says `userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms`.

IntermediateTroubleshootingSSH, sudo and authentication
Answer

Likely causes → The client signs with the deprecated ssh-rsa (SHA-1) algorithm (old client), or the server's crypto policy disallows it.

Diagnose →

ssh -V
ssh -v user@server 2>&1 | grep -i 'signature\|rsa'
update-crypto-policies --show            # RHEL server

Fix → Upgrade the client so it uses rsa-sha2-256/512, or better, generate an Ed25519 key: ssh-keygen -t ed25519.

Prevent → Standardise on Ed25519 keys.

All Linux questions Roadmap: Linux

More on SSH, sudo and authentication