996Worker
996Worker
发布于 2023-03-16 / 212 阅读
0
0

SSH can not login: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

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


评论