我无法从我的 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
然后我在我的 GitHub 上添加了一个条目/etc/hosts
(这将是错误的方式——不要相信,它总是必要的):
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
我们将非常感谢您的帮助!