侧边栏壁纸
博主头像
996 Worker's Blog博主等级

祇園精舎の鐘の聲, 諸行無常の響き有り。

  • 累计撰写 215 篇文章
  • 累计创建 55 个标签
  • 累计收到 25 条评论

目 录CONTENT

文章目录

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

996Worker
2023-03-16 / 0 评论 / 0 点赞 / 208 阅读 / 529 字

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

0

评论区