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 *.
More on SSH, sudo and authentication
`ssh deploy@server01` fails with `deploy@server01: Permission denied (publickey).`BeginnerPermissions on `~/.ssh` are correct, but you still get `Permission denied (publickey)` and the server log says `Authentication refused: bad ownership or modes for directory /home/deploy`.IntermediateKey auth fails only on RHEL with SELinux enforcing; the server logs show nothing unusual about modes.IntermediateA user's RSA key stopped working against a new server: the server log says `userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms`.IntermediateSSH login takes 20–30 seconds before the password or key prompt appears.IntermediateSSH fails immediately with `kex_exchange_identification: read: Connection reset by peer`.Advanced