3

Server refused out key problem in 22.04LTS. The same procedure works fine in 20.04LTS.

public key is in ~/.ssh/authorized_keys. change mode is correct.

cocomac
  • 3,394
ghysner80
  • 31
  • 1
  • 1
  • 3

1 Answers1

1

The solution for me was to use ECDSA algorithm for creating the keypair.

You can create it with this command: ssh-keygen -t ecdsa -b 521 (521 is the maximum and recommended key size).

I learned this was needed from a comment in this DO article.

antishok
  • 111
  • 3
  • Other solutions to the same issue: https://askubuntu.com/questions/1404049/ssh-without-password-does-not-work-after-upgrading-from-18-04-to-22-04 – antishok Jun 04 '22 at 22:30