ssh-key-login-not-working
Table of Contents
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
ssh-key-login-not-working.txt · Last modified: 2022/05/02 09:23 by baumi