2013-02-27 60 views
1

我无法从我的虚拟机(VirtualBox的/ Debian的)连接在GitHub我的Git仓库:上VM/VirtualBox的混帐/ GitHub的连接问题

# git clone [email protected]:username/reponame.git . 
Cloning into .... 
ssh: Could not resolve hostname github.com: Name or service not known 
fatal: The remote end hung up unexpectedly 

然后,我添加了GitHub的一个条目我/etc/hosts(这将是错误的方式 - 不相信,它总是需要):

207.97.227.239 github.com 

现在我得到另一个错误:

# git clone [email protected]:username/reponame.git . 
Cloning into .... 
ssh: connect to host github.com port 22: Connection timed out 
fatal: The remote end hung up unexpectedly 

我们非常感谢您的帮助!

+2

确保你实际上有权访问github.com和/或互联网。 – Learath2 2013-02-27 16:49:32

+0

的确,我的客人没有互联网连接。 Oooh ...狗屎!...感谢你的提示! – automatix 2013-02-27 16:59:09

+0

重启虚拟机后,一切正常! :) 再次感谢你! – automatix 2013-02-27 17:07:46

回答

-1

看起来像你没有任何互联网接入...