无法从Virtualbox的Ubuntu服务器上从git中拉出来 [英] Unable to pull from git on a Ubuntu Server inside of Virtualbox
问题描述
我已经安装了git,初始化了一个回购站,并将我的密钥添加到了我的github帐户中,并运行 ssh -T git@github.com
所有没有错误。
我尝试实际上拉回购。无论我尝试拉回什么回购,我都会收到 Permission denied(publickey)错误。致命的:远程终端意外挂断
那么,有什么建议可以使这个工作正常?
感谢。
我找到了解决方法'修复':
b $ b这个问题似乎试图在Virtualbox中采用桥接模式。如果我将网络切换到NAT,则可以成功拔出,然后切换回Bridged在本地工作,然后在需要推送时返回到NAT。
这不是最方便修复,但它现在工作。如果任何人有一个建议,使这个更好,我都耳朵。
I have a Virtualbox VM with Ubuntu server running with networking set to bridged.
I've installed git, initialized a repo, added my key to my github account, and ran ssh -T git@github.com
all with no errors.
My problem comes when I try to actually pull a repo. No matter what repo I attempt to pull, I get the error Permission denied (publickey). fatal: The remote end hung up unexpectedly
So, any tips on getting this working?
Thanks.
I've found a workaround 'fix':
The problem seems to be trying to pull in 'Bridged' mode in Virtualbox. If I switch networking to NAT I can successfully pull, then I switch back to Bridged to work locally, then back to NAT when it's time to push.
It's not the most convenient fix, but it works for now. If anyone has a suggestion to make this better, I'm all ears.
这篇关于无法从Virtualbox的Ubuntu服务器上从git中拉出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!