【问题标题】:Can't git clone openshift application无法 git clone openshift 应用程序
【发布时间】:2016-04-26 19:15:57
【问题描述】:

我从 Web 控制台创建了一个 OpenShift 应用程序,并使用 rhc setup 创建了一个私钥/公钥对。

现在我正在尝试克隆源代码:

git clone ssh://571f385a7628e1161a000080@test-acasaccia.rhcloud.com/~/git/test.git/

(从控制台复制的 URL)。

git clone 失败并显示以下消息:

ssh: Could not resolve hostname test-acasaccia.rhcloud.com: Name or service not known
fatal: Could not read from remote repository.

有什么想法吗?

【问题讨论】:

  • 给我们你使用的命令;可能你的命令有错误

标签: git openshift


【解决方案1】:

首先检查你是否有与机器的连接。

如果 putty 无法连接,则说明您有连接问题。
我认为这是一个 DNS 问题,一旦你解决了它,你就可以克隆。

【讨论】:

  • 使用此命令错误变为:ssh: Could not resolve hostname test-acasaccia.rhcloud.com:~: Name or service not known
  • 好的,不用git也能连接机器吗? putty./terminal/ssh 等?
  • Putty 给出host does not exist 错误。是 DNS 问题吗?
  • 看起来像。如果您无法通过 ssh 连接到机器,您也将无法克隆。问题在于您的连接而不是 git。
  • 至少你发现了问题,现在你需要找出它是否是代理/DNS等
猜你喜欢
  • 1970-01-01
  • 2015-06-01
  • 1970-01-01
  • 1970-01-01
  • 2015-06-12
  • 2020-10-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多