我在这里遵循了指南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。
谢谢你的帮助