【发布时间】:2012-03-27 23:59:38
【问题描述】:
在 Eclipse 中,当我尝试从 openshift 导入现有应用程序时,出现以下错误 -
无法克隆存储库。身份验证失败。 请确保您已将私钥添加到 ssh 首选项中。
我已按照以下步骤操作- 1. 在 Eclipse 中转到 Window -> Preferences -> General -> Network Connection -> SSH2 -> Key Management 2.生成RSA密钥 3. 粘贴openshift Express账户中的公钥内容。 4. 使用密码保存私钥。
即使按照上述步骤操作,我在克隆 GIT 存储库时仍会出错。
我在 Eclipse 日志文件中有以下错误 -
!ENTRY org.jboss.tools.openshift.express.ui 4 0 2012-03-21 10:43:20.161
!MESSAGE Could not clone the repository. Authentication failed.
Please make sure that you added your private key to the ssh preferences.
!STACK 0
org.eclipse.jgit.errors.TransportException: ssh://7261e534e25842aaa353878a6c9af7cf@astofa-astofa.rhcloud.com/~/git/astofa.git/: java.net.ConnectException: Connection timed out: connect
!ENTRY org.jboss.tools.common.ui 4 0 2012-03-21 10:44:21.838
!MESSAGE Operation did not complete in a reasonnable amount of time
它说操作没有在时间内完成,但是我的网络连接完全正常。
我是否还需要一些其他工具才能继续?我是openshift的新手,所以我不太清楚。我正在按照 - Setting up openshift project in Eclipse
在第 5 步卡住了。
请告诉我问题的解决方案。
我安装了 OpenSSH 并生成了密钥对,现在该错误已经消失了。然而,一个新的错误已经开始出现 -
创建本地 git 存储库时发生异常。 java.lang.reflect.InvocationTargetException
这与 GIT 有关。
任何建议都会有很大帮助。
【问题讨论】:
标签: java eclipse git openshift