由于私钥,将openshift项目导入eclipse失败

时间:2016-07-01 13:36:09

标签: eclipse git openshift

我正在尝试将openshift应用程序导入eclipse。

我收到以下错误消息:

Could not clone the repository. Authentication failed.
 Please make sure that you added your private key to the ssh preferences.
ssh://57766e5e0c1e66b5c5000073@javaapp-tcinfopage.rhcloud.com/~/git/javaapp.git/: ProxyHTTP: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out: connect

我在Eclipse中多次生成了新的RSA密钥。

在ssh首选项中,引用了私钥和公钥。

我还将公钥包含在我的openshift帐户中

我不知道该怎么做,我无法在任何地方找到解决方案。

这里发生了什么?

修改

D:\TEST>git clone ssh://5777ab8d0c1e662a4d0001af@javacloudapp-tcinfopage.rhcloud.com/~/git/javacloudapp.git/
Cloning into 'javacloudapp'...
Warning: Permanently added 'javacloudapp-tcinfopage.rhcloud.com,52.20.106.184' (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.

D:\TEST>

1 个答案:

答案 0 :(得分:0)

我刚看了一下OpenShift Online控制台。在OpenShift中创建应用程序时,需要在步骤3中添加公钥(.pub文件)。请参阅随附的屏幕截图。Adding SSH Key in OpenShift application Git SCM