如果确定公钥已经在服务器上正确配置,还是在repo init的时候报如下错误
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.
解决方法:
- 新增或者编辑
~/.ssh/config
- 添加内容
Host xxx.storm
HostName xxx.storm
User xiaxinkai
IdentityFile ~/.ssh/id_rsa