git clone 连接被拒绝
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21837429/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git clone connection refused
提问by chenino
I'm pretty new and trying to set up an environment for my Econotag. Using this guide https://github.com/malvira/libmc1322x/wiki/libmc1322xI am getting an error message .
我是新手,正在尝试为我的 Econotag 设置环境。使用本指南 https://github.com/malvira/libmc1322x/wiki/libmc1322x我收到一条错误消息。
user@instant-contiki:~$ git clone git://git.devl.org/git/malvira/libmc1322x.git
Cloning into 'libmc1322x'...
fatal: unable to connect to git.devl.org:
git.devl.org[0: 209.208.78.21]: errno=Connection refused
How to get around this
如何解决这个问题
回答by vonbrand
That means that you can't connect to the server over the native git protocol. Note that git native protocol uses ports 9418 TCP and UDP, those might be blocked by some firewall on the way. Or the server itself might be refusing connections. To check for such problems, try cloning a small repository from elsewhere, like git clone git://git.kernel.org/pub/scm/editors/uemacs/uemacs.git
(if you love emacs, but hate it's size, it might be for you ;-)
这意味着您无法通过本机 git 协议连接到服务器。请注意,git 本机协议使用端口 9418 TCP 和 UDP,这些端口可能在途中被某些防火墙阻止。或者服务器本身可能拒绝连接。要检查此类问题,请尝试从其他地方克隆一个小型存储库,例如git clone git://git.kernel.org/pub/scm/editors/uemacs/uemacs.git
(如果您喜欢 emacs,但讨厌它的大小,它可能适合您;-)
Check that the URL you are giving is right (i.e., git://
and not e.g. http://
or something else). Maybe you need to set up an SSH key, an account, or something else first.
检查您提供的 URL 是否正确(即,git://
而不是 eghttp://
或其他内容)。也许您需要先设置 SSH 密钥、帐户或其他内容。
回答by Amos Folarin
Looks like an empty repo (git.devl.org/git/malvira/libmc1322x.git). I think this is the intended replacement https://github.com/malvira/libmc1322x.git
看起来像一个空的 repo (git.devl.org/git/malvira/libmc1322x.git)。我认为这是预期的替代https://github.com/malvira/libmc1322x.git
git clone https://github.com/malvira/libmc1322x.git
works fine for me.
对我来说很好用。
回答by chenino
Are you working beside a proxy ? If yes you might want to try the following commands in your terminal :
你在代理旁边工作吗?如果是,您可能想在终端中尝试以下命令:
echo $http_proxy
If nothing gets out of that you should reconfigure your .bashrc
如果没有任何结果,您应该重新配置您的 .bashrc
回答by Rajendra
I also faced same problem I tried all nothing worked later on I come to know there is problem on server. Please check basic things before trying other experiments that might save your time.
我也遇到了同样的问题,我尝试了所有没有用的东西,后来我知道服务器上有问题。在尝试其他可能节省您时间的实验之前,请检查基本内容。
回答by pawele
I had the same error with RIOT-OS, substituting git: with http: worked!
我在使用 RIOT-OS 时遇到了同样的错误,将 git: 替换为 http: 工作!