侧边栏壁纸
博主头像
996worker

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

  • 累计撰写 199 篇文章
  • 累计创建 47 个标签
  • 累计收到 8 条评论

目 录CONTENT

文章目录

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

996worker
2023-03-17 / 0 评论 / 0 点赞 / 10 阅读 / 64 字
温馨提示:
本文最后更新于 2023-03-17,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

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

评论区