【问题标题】:Openshift plone quickstart permission deniedOpenshift plone 快速入门权限被拒绝
【发布时间】:2013-11-17 08:00:36
【问题描述】:

我正在尝试在 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 密钥。有什么建议吗?

【问题讨论】:

    标签: git ssh plone openshift


    【解决方案1】:

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

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

    2. 使用 git config --global user.name "My Name"git config --global user.email "my@email.com" 在 git 中设置我的姓名和电子邮件

    我不太了解 git、github 或 ssh,无法理解为什么必须先登录 github,但它确实有效。我希望这对其他人有帮助!

    【讨论】:

      【解决方案2】:

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

      即:使用https://github.com/kagesenshi/plone-openshift-quickstart.git 而不是git@github.com:kagesenshi/plone-openshift-quickstart.git

      【讨论】:

        猜你喜欢
        • 2014-05-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-11-01
        • 1970-01-01
        • 2014-03-18
        • 2013-09-01
        • 1970-01-01
        相关资源
        最近更新 更多