Interview Prep/Linux/SSH, sudo and authentication

After upgrading the client to a new OpenSSH, connections to an old appliance fail with `no matching host key type found. Their offer: ssh-rsa,ssh-dss`.

IntermediateTroubleshootingSSH, sudo and authentication
Answer

Likely causes → New OpenSSH (8.8+) disables ssh-rsa signatures (SHA-1) by default; the old server only offers those.

Diagnose →

ssh -vvv admin@appliance 2>&1 | grep -i 'host key'
ssh -Q key

Fix → Enable it only for that host in ~/.ssh/config:

Host appliance
    HostKeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa

Plan to upgrade the appliance.

Prevent → Scope legacy exceptions to specific hosts, never Host *.

All Linux questions Roadmap: Linux

More on SSH, sudo and authentication