如何确定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.
之前一切都运行良好。
不用猜测(或试错)哪个密钥是罪魁祸首,是否有可能列出我所有SSH密钥的长度?
更新:
Only
git pull
is giving me above error. I.e., my public key is still fine:$ ssh -T git@salsa.debian.org Welcome to GitLab, @myid-guest!
The
ssh-keygen -lf
might not be the answer, as I'm following https://docs.gitlab.com/ee/ssh/, who recommends to useed25519
as default key, and who also instructs that, to generate a new ED25519 SSH key pair, dossh-keygen -t ed25519 -C "email@example.com"
. However, myssh-keygen -lf
reports that$ ssh-keygen -lf id_ed25519.pub 256 SHA256:PO2bk6B...