English 中文(简体)
我怎么允许第二个/第三个等。。使用ssh和gitosis连接到我的git服务器的计算机?
原标题:How do i allow a second/third/etc.. computer to connect to my git server using ssh and gitosis?

我在这里遵循了指南http://www.hackido.com/2010/01/installing-git-on-server-ubuntu-or.html

但我找不到正确的方法来导入另一个ssh密钥,这样我的其他计算机就可以克隆和推送repo。

这个代码特别是<code>sudo-H-u git gitosis init</tmp/id_rsa.pub让我大吃一惊,因为它似乎只向git用户导入了一个密钥。我尝试使用authorized_keys文件运行相同的命令,该文件包含我的两个公钥,但没有成功。

Any advice? thanks

更新

I cloned gitosis-admin locally on the server using my local user. I scp my .pub files from each computer to my server then renamed them and stuck them in gitosis-admin/keydir/ . I then made the following changes to the gitosis.conf file per @rpflo advice.

[gitosis]

[group gitosis-admin]
writable = gitosis-admin
members = serv

[group all-repos]
writable = myproject
members = serv work win7top

在成功提交并推送更改后,我仍然无法git-push“git@server:myproject.git”发送到服务器(在初始化和设置原点等之后)

[已解决]

好吧,我没有“gitadd”。在我编辑了conf文件后,我的密钥文件到了gitosis-admin/keydir。

谢谢你的帮助

最佳回答

如果gitosis安装正确,只需在gitosis存储库的keys目录中添加一个密钥

gitosis-admin/
    gitosis.conf
    keydir/
        sally.pub
        joe.pub
        bob.pub

然后在gitosis.conf中创建组

[group gitosis-admin]
writable = gitosis-admin
members = joe

[group all-repos]
writable = repo1 repo2 another-project
members = joe bob sally
问题回答

暂无回答




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签