2015-10-20 30 views
1

我想在OpenShift上部署应用程序。直到我希望将它在openshift上部署应用程序 - git和ssh键不起作用

https://developers.openshift.com/en/wildfly-getting-started.html#step1

正常工作:我跟着这个教程。然后,我得到如下:

Warning: Permanently added 'xxxx.rhcloud.com,54.88.2.59' (RSA) to the list of known hosts. 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

我在另一篇文章,我应该从我的用户/的.ssh文件夹中复制私有密钥读取(我在Windows 7中)到混帐”的ssh文件夹。

但在我的git的文件夹,里面是没有的ssh文件夹,只是一个证书文件夹

什么我需要做的是什么呢?

编辑

我跑RHC设置和得到这个错误:

Your private SSH key file should be set as readable only to yourself. Please 
run 'chmod 600 C:\Users\xxx\.ssh\id_rsa' 

An SSH connection could not be established to jenkins-xxx.rhcloud.com. 
Your SSH configuration may not be correct, or the application may not be 
responding. Could not parse PKey: no start line (ArgumentError) 

哪个SSH配置?在我的电脑上?在OpenShift上?

+0

在您的计算机上。尝试'chmod 600' –

回答

1

“权限被拒绝”错误表示服务器拒绝您的连接。你需要ssh密钥,因为你没有访问权限。

您需要生成SSH密钥。

3

您可能想要运行rhc setup,它将引导您完成设置ssh密钥的过程(如果您愿意,将为您生成一个密钥)。详细信息可在Remote connection (SSH)中找到。

如果您已经有一个计划使用的密钥,您也可以使用OpenShift Web界面上传您的ssh密钥。

+0

感谢您的答复,我编辑了我的问题。 – user3813234

+0

@ user3813234,如果您不介意,您可以删除您的id_rsa并重新运行rhc设置,生成并上传新的密钥对。 –

+0

我做到了。我删除了id_rsa和id_rsa.pub,reran rhc安装程序并在id_isa上执行了chmod 600 ...当我执行git push时出现同样的访问权限错误。顺便说一句,rhc ssh access的作品。也许我在用git做错了什么?但我只是按照他们的教程... – user3813234

相关问题