gpt4 book ai didi

SSH 添加 : Invalid key length

转载 作者:行者123 更新时间:2023-12-03 23:33:23 26 4
gpt4 key购买 nike

我的mac自动升级后,我尝试ssh-add失败:

>ssh-add
Enter passphrase for /Users/dan/.ssh/id_rsa:
Error loading key "/Users/dan/.ssh/id_rsa": Invalid key length

>ssh -V
OpenSSH_7.6p1, LibreSSL 2.6.2

但是我该如何解决这个问题?

谢谢!

最佳答案

根据 release notes对于 OpenSSH 7.6:

Refuse RSA keys <1024 bits in length and improve reporting
for keys that do not meet this requirement.

因此,您尝试导入的 key 可能太短(弱)。最好的办法是生成一个新 key 。

关于SSH 添加 : Invalid key length,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48055006/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com