我能够使用这些指令设置VirtualBox与Gitlab - >https://github.com/gitlabhq/gitlabhq/wiki/VirtualBox-Image。 Web界面工作得很好,我添加了我的主机公钥并创建了一个“测试”项目。但是,我无法推送到我的测试存储库,因为它在制作测试目录并执行'git init'之后要求输入[email protected]的密码。我已经添加了我的密钥,并且Web界面工作得很好。任何想法可能是错的?Gitlab git推送失败与流浪汉管理的Virtualbox
$ git remote add test [email protected]:test.git
$ git push -u test master
[email protected]'s password: ...
我相同的结果(2222 VM-侧等于22主机端)试过这也:
git remote add test ssh://[email protected]:2222/test.git
git push -u test master
[email protected]'s password:...
不应该要求密码。我还将'vagrant'用户添加到VM上的'git'组。
我验证过的VM我能够正确地接收低于预期的结果:
[email protected]:~$ ssh -T [email protected]
hello rails, this is gitolite v2.2-11-g8c4d1aa running on git 1.7.0.4
the gitolite config gives you the following access:
R W gitolite-admin
@R_ @W_ testing
这里是我的VagrantFile:
Vagrant::Config.run do |config|
config.vm.box = "gitlab"
config.vm.network :hostonly, "33.33.33.10"
end
这有事情做与远程混帐推到virtualbox。谢谢您的帮助!
我试图添加端口2222到/ etc/ssh/sshd_config和使用por t 2222在config/gitlab.yml中,但无济于事。当我尝试从主机推送到VM时,它仍然要求提供git @ localhost的密码。有任何想法吗?? – PhilBot 2012-04-06 22:40:09