User Tools

Site Tools


ssh-key-login-not-working

Things to check, if SSH key login is not working

Permission issues

  1. authorized_keys contains correct public key
  2. authorized_keys file has permisions 600
  3. .ssh directory has permissions 755 or more restrictive

Key Exchange Issues

  1. Newer versions of openssh do no longer accept ssh-rsa as public key algorithm
  2. To diagnose add “Loglevel DEBUG3” to /etc/ssh/sshd_config and restart sshd
  3. /var/log/auth.log should then contain the following line
    userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
  4. Workaround: add “PubkeyAcceptedKeyTypes=+ssh-rsa” to /etc/ssh/sshd_config and restart sshd
  5. Fix: Regenerate your public/private keypair
,
ssh-key-login-not-working.txt · Last modified: 2022/05/02 09:23 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki