报错如下:
$ git clone "ssh://xxxxxx@xxxxx/xxxxx"
Cloning into 'xxxxx'...
xxxxx@xxxxx: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
排查过后发现原因是,之前创建的SSH KEY都是RSA加密格式的,我当前的Gerrit版本不支持RSA加密方式(可能是因为RSA过时了),需要使用ED25519加密方式的SSH KEY:
ssh-keygen -t ed25519 -C "your_email@example.com"
最后,将生成的id_ed25519.pub内容添加至Gerrit SSH KEY管理即可解决。
:)
在尝试使用gitclone时遇到了Permissiondenied(publickey)的错误,原因是Gerrit不支持RSA加密的SSHKEY。解决方案是生成ED25519加密方式的SSHKEY,并将其公钥添加到Gerrit的SSHKEY设置中,以确保正确的访问权限。
7127

被折叠的 条评论
为什么被折叠?



