Issue
Can not login SSH via public/private key pair, run systemctl status sshd
on ssh server side, showed a log:
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Reason
RSA Algorithm is deprecated, especially in new version of Open SSH server.
Solution
Generate new key pair with another algorithm, such as ssh-keygen -t ed25519 -C "[email protected]"
.