我无法从我的VM(VirtualBox / Debian)连接GitHub上的Git存储库:
# 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
然后我为我的/etc/hosts
添加了一个GitHub条目(这将是错误的方式 - 不要相信,它总是必要的):
207.97.227.239 github.com
现在我又收到了另一个错误:
# 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
我们非常感谢你的帮助!
答案 0 :(得分:0)
看起来你没有任何互联网接入......