Openshift plone quickstart permission denied

泄露秘密 提交于 2019-12-08 01:57:31

问题


I'm trying to set up plone on openshift using this guide, on windows. I've got git and rhc following the openshift quickstart guide. However, when I get to git pull -s recursive -X theirs upstream master in the plone guide, I get a permission denied error:

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.

I'm not sure what I'm doing wrong here, but I did add the ssh key during rhc setup. Any suggestions?


回答1:


Turns out I needed to set up my public key in github too. Once I configured git and github it worked. For anyone else encountering this problem, here's what I did:

  1. Added the same public key used in openshift to github here (obviously needed to login first)

  2. Set up my name and email in git using git config --global user.name "My Name" and git config --global user.email "my@email.com"

I don't know git, github or ssh well enough to understand why it was necessary to log into github first, but it worked. I hope this helps someone else!




回答2:


A simple solution is: Use the https url instead of the ssh url.

I.e.: Use https://github.com/kagesenshi/plone-openshift-quickstart.git instead of git@github.com:kagesenshi/plone-openshift-quickstart.git



来源:https://stackoverflow.com/questions/20028556/openshift-plone-quickstart-permission-denied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!