如何知道SSH密钥的长度?

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 密钥长度?

更新:

推荐的 ED25519 SSH 密钥不太可能只有 256 位长。

?

Shr*_*ari 5

你能试一下吗

ssh-keygen -lf keygen.pub
Run Code Online (Sandbox Code Playgroud)