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.
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.
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.