如果確定公鑰已經(jīng)在服務(wù)器上正確配置,還是在repo init的時候報如下錯誤文章來源:http://www.zghlxwxcb.cn/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.
解決方法:文章來源地址http://www.zghlxwxcb.cn/news/detail-691689.html
- 新增或者編輯
~/.ssh/config
- 添加內(nèi)容
Host xxx.storm
HostName xxx.storm
User xiaxinkai
IdentityFile ~/.ssh/id_rsa
到了這里,關(guān)于repo init出現(xiàn)Permission denied (publickey)如何解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!