VM / VirtualBox上的Git / GitHub连接问题 [英] Git/GitHub connection issue on VM/VirtualBox

查看:861
本文介绍了VM / VirtualBox上的Git / GitHub连接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从我的VM(VirtualBox / Debian)连接GitHub上的Git存储库:

 #git clone git @ github .com:username / reponame.git。 
克隆到....
ssh:无法解析主机名github.com:名称或服务未知
致命:远程端意外挂起

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

  207.97.227.239 github.com 

现在我得到另一个错误:

 #git clone git@github.com:username / reponame.git。 
克隆到....
ssh:连接到主机github.com端口22:连接超时
fatal:远程端意外挂起



我们非常感谢您的帮助!

解决方案

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


I cannot connect my Git repository on GitHub from my VM (VirtualBox / Debian):

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

Then I added an entry for GitHub to my /etc/hosts (it will be the wrong way -- don't believe, that it is always necessary):

207.97.227.239  github.com

Now I'm getting another error:

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

We would be very grateful for your your help!

解决方案

looks like you dont have any internet access...

这篇关于VM / VirtualBox上的Git / GitHub连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆