Openshift plone quickstart权限被拒绝

时间:2013-11-17 08:00:37

标签: git ssh plone openshift

我正试图在Windows上使用this指南在openshift上设置plone。我在openshift quickstart guide之后得到了git和rhc。但是,当我在plone指南中找到git pull -s recursive -X theirs upstream master时,我收到了一个拒绝权限错误:

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密钥。有什么建议吗?

2 个答案:

答案 0 :(得分:3)

原来我需要在github中设置我的公钥。一旦我配置了git和github就可以了。对于遇到这个问题的其他人来说,这就是我所做的:

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

  2. 使用git config --global user.name "My Name"git config --global user.email "my@email.com"

  3. 在git中设置我的姓名和电子邮件

    我不知道git,github或ssh是否足以理解为什么有必要先登录github,但它有效。我希望这有助于其他人!

答案 1 :(得分:0)

一个简单的解决方案是:使用https网址而不是ssh网址。

即:使用https://github.com/kagesenshi/plone-openshift-quickstart.git代替git@github.com:kagesenshi/plone-openshift-quickstart.git

相关问题