4

I can't configure SSH key-authentication on my new VDS server. After I've done ssh-copy-id I still get password prompt for user.

To debug I added LogLevel DEBUG3 in /etc/ssh/sshd_config and restarted systemctl restart sshd and saw in logs /var/log/secure this message:

RSA key is not allowed

Why does this happen and how do I fix it?

zored
  • 2,718
  • 3
  • 19
  • 23

1 Answers1

4

OpenSSH disabled RSA scheme by default for security reasons.

Therefore the best option is to create new local keys using more secure algo:

ssh-keygen -t ed25519
zored
  • 2,718
  • 3
  • 19
  • 23