git - Openshift Plone 快速启动权限被拒绝

标签 git ssh plone openshift

我正在尝试使用 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,它就工作了。对于遇到此问题的其他人,这就是我所做的:

  1. 将 openshift 中使用的相同公钥添加到 github here (显然需要先登录)

  2. 使用 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/

相关文章:

git - 设置编辑器后无法提交

linux - 我可以在 Linux、Mac、Windows 上使用哪个 SVN subversion?

google-chrome - 警告 : REMOTE HOST IDENTIFICATION HAS CHANGED! Chrome 安全外壳应用程序扩展

git - 当我 git clone : fatal: does not appear to be a git repository

Solr 无法识别的 Solr schema.xml 更改

plone - 如何修复 : Members (This object from the CMFPlone product is broken! )?

objective-c - Xcode Git 与 Google Drive/Dropbox 的问题

linux - ssh 进入虚拟机时,未通过脚本正确设置环境变量

python - 导入错误 : No module named testrunner

git - 从 repo 中删除跟踪的忽略文件,但不在本地