Table of Contents
Things to check, if SSH key login is not working
Permission issues
Key Exchange Issues
Things to check, if SSH key login is not working
Permission issues
authorized_keys contains correct public key
authorized_keys file has permisions 600
.ssh directory has permissions 755 or more restrictive
Key Exchange Issues
Newer versions of openssh do no longer accept ssh-rsa as public key algorithm
To diagnose add “Loglevel DEBUG3” to /etc/ssh/sshd_config and restart sshd
/var/log/auth.log should then contain the following line
userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Workaround: add “PubkeyAcceptedKeyTypes=+ssh-rsa” to /etc/ssh/sshd_config and restart sshd
Fix: Regenerate your public/private keypair
kb
,
ssh