xpt*_*xpt 0 linux ubuntu openssh key ssh-keys
如何知道SSH密钥的长度?
我git pull最近收到以下错误,
$ git pull
> GitLab: Your SSH key must be at least 2048 bits.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)
以前一切正常。
不是猜测(或试错)哪个密钥是罪魁祸首,是否可以列出我所有的 SSH 密钥长度?
更新:
只是git pull给了我上面的错误。即,我的公钥仍然很好:
$ ssh -T git@salsa.debian.org
Welcome to GitLab, @myid-guest!
Run Code Online (Sandbox Code Playgroud)这ssh-keygen -lf可能不是答案,因为我正在关注https://docs.gitlab.com/ee/ssh/,他建议将其ed25519用作默认密钥,并且还指示生成新的 ED25519 SSH 密钥对,做ssh-keygen -t ed25519 -C "email@example.com"。然而,我的ssh-keygen -lf报告说
$ ssh-keygen -lf id_ed25519.pub
256 SHA256:PO2bk6B...
Run Code Online (Sandbox Code Playgroud)推荐的 ED25519 SSH 密钥不太可能只有 256 位长。
?
| 归档时间: |
|
| 查看次数: |
6617 次 |
| 最近记录: |