我的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/