我正在尝试使用 this 在 openshift 上设置 plone指南,在 Windows 上。我有 git 和 rhc 遵循 openshift quickstart guide 。然而,当我到达git pull -s recursive -X theirs upstream master
时在 Plone 指南中,我收到权限被拒绝的错误:
The authenticity of host 'github.com (192.30.252.130)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我不确定我在这里做错了什么,但我确实在 rhc setup
期间添加了 ssh key 。有什么建议吗?
最佳答案
结果我也需要在 github 中设置我的公钥。一旦我配置了 git 和 github,它就工作了。对于遇到此问题的其他人,这就是我所做的:
将 openshift 中使用的相同公钥添加到 github here (显然需要先登录)
使用
git config --global user.name "My Name"
在 git 中设置我的姓名和电子邮件和git config --global user.email "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a4c9dde4c1c9c5cdc88ac7cbc9" rel="noreferrer noopener nofollow">[email protected]</a>"
我不太了解 git、github 或 ssh,无法理解为什么需要先登录 github,但它有效。我希望这对其他人有帮助!
关于git - Openshift Plone 快速启动权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20028556/