如果确定公钥已经在服务器上正确配置,还是在repo init的时候报如下错误文章来源:https://www.toymoban.com/news/detail-691689.html
Downloading Repo source from https://gerrit.googlesource.com/git-repo
manifests:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
manifests: sleeping 4.0 seconds before retrying
manifests:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方法:文章来源地址https://www.toymoban.com/news/detail-691689.html
- 新增或者编辑
~/.ssh/config
- 添加内容
Host xxx.storm
HostName xxx.storm
User xiaxinkai
IdentityFile ~/.ssh/id_rsa
到了这里,关于repo init出现Permission denied (publickey)如何解决的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!