【发布时间】:2016-11-14 21:03:59
【问题描述】:
所有,
我在我的 Ubuntu 上的 github 上遇到了一个关于 git 的问题。
我已经通过git config --global http.proxy proxyserver:port 配置了代理设置
但是当我输入 git clone git@github.com:myusername/example.git 时,我得到了以下信息
错误:ssh: connect to host github.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly
我应该怎么办?
谢谢
史蒂文
【问题讨论】:
-
您正在尝试连接
ssh,它不使用 HTTP 代理设置。您可能需要在 Github 上使用 HTTP 或 HTTPS URL。 -
也许this 能帮上忙。
-
我使用 https url 来克隆 repo,它可以工作。