在 Eclipse 中使用 openShift 导入时出错

Working with openShift in Eclipse Error at importing

我已遵循本教程 here ,但在单击“完成”克隆你的存储库步骤时,我收到此错误:

Could not clone the repository. Authentication failed. Please make sure that you added your private key to the ssh preferences.

有什么问题?

您的 SSH 密钥有问题。 通常,问题是:

  • 您的私钥不在正确的位置;
  • 您没有在存储库中正确注册 public 密钥(密钥错误或格式错误);

如果您使用的是 windows,您可以尝试将您的私钥放在以下任一位置,即您的 git 安装位置:

Program Files\Git\.ssh\id_rsa
Program Files (x86)\Git\.ssh\id_rsa

或者在您的主​​目录中创建一个 .ssh 目录并将私钥放在那里(通常是 C:/Users/user/)。

如果它不起作用,请提供有关您的环境的更多信息。

在为 eclipse 安装 openshift 工具插件时,您应该使用 Jboss 工具的最终版本,而不是 beta 版本。而且我不建议您通过 eclipse 市场安装它,因为当您搜索它时 Jboss 工具最终版本不会出现,特别是如果您使用 STS。 Jboss 工具的最终版本 link 在这里 http://tools.jboss.org/downloads/