【问题标题】:Importing openshift project into eclipse fails because of private key由于私钥,将openshift项目导入eclipse失败
【发布时间】:2016-07-01 13:36:08
【问题描述】:

我正在尝试将 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>

【问题讨论】:

  • 远程存储库托管在哪里?
  • 我在错误的第 3 行看到连接超时错误。即使有身份验证失败,任何人都确定这是否是我们得到的?因为我猜它最后会说 Auth 失败。
  • stackoverflow.com/questions/36349162/…stackoverflow.com/questions/9804071/… 有一些建议。请检查您的 ip 和端口是否可以通过 telnet 访问。
  • @Manish 那不是 57766e5e0c1e66b5c5000073@javaapp-tcinfopage.rhcloud.com/~/git/javaapp.git/ 吗?
  • @GauthamanSahadevan 我看了那些...那里描述的步骤没有帮助。

标签: eclipse git openshift


【解决方案1】:

我刚刚查看了 OpenShift Online 控制台。在 OpenShift 中创建应用程序时,您需要在第 3 步中添加您的公钥(.pub 文件)。见附件截图。

【讨论】:

  • 我不确定,为什么截图链接不起作用。
  • 我也做过……好几次了。我多次创建并重新创建了该应用程序。我在 Eclipse 中创建了 ssh 密钥,然后直接在 git bash 中尝试了它......到目前为止没有任何效果......我只是重新创建了应用程序并粘贴了密钥。然后我通过命令行从 git 克隆了整个东西,请参阅我的编辑。
  • 奇怪的是您的 SSH 公钥不起作用。确保公钥中没有换行符或空格(以防万一)。
  • 您可以尝试将 OpenShift 与私有 BitBucket 存储库连接。看到这个:stackoverflow.com/questions/21972377/…
猜你喜欢
  • 1970-01-01
  • 2013-12-06
  • 2018-05-20
  • 1970-01-01
  • 2013-02-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多