Comments on Setting Up Gitosis On Ubuntu
Setting Up Gitosis On Ubuntu Gitosis is a tool for hosting git repositories. Its common usage is for a central repository that other developers can push changes to for sharing. This article is how to setup and manage a git repository.There are some great services out there than can do this for you, but why pay money for something you can easily do for free? This article shows how to setup and manage a secure and private git repository that people can use as a central sharing point.
7 Comment(s)
Comments
My gitosis is working all good with my user.
But I found some issues when trying to add my friend to it.
I did as told, and added his public key in the gitosis-admin, also added him to the group, and so on.
but when he tries to clone on repository:
git clone git@myserver:project.git
he is asked about the git password (the git user from @myserver)
Was this supposed to happen?
Should I give this user the git private key, or did i miss something in the configuration?
I would like to give him only permission over the project listed inside the gistosis.conf
I'm getting this too, under Debian. For some reason I cannot fathom, the /srv/gitosis/.ssh/authorized_keys file is not being updated. In the interim, you can edit it manually with your friend's key.
From the gitolite README:
Gitolite allows a server to host many git repositories and provide access to many developers, without having to give them real userids on the server. The essential magic in doing this is ssh's pubkey access and the authorized_keys
file, and the inspiration was an older program called gitosis.
Gitolite can restrict who can read from (clone/fetch) or write to (push) a repository. It can also restrict who can push to what branch or tag, which is very important in a corporate environment. Gitolite can be installed without requiring root permissions, and with no additional software than git itself and perl. It also has several other neat features described below and elsewhere in the doc/
directory.
URLs:
http://github.com/sitaramc/gitolite
http://github.com/sitaramc/gitolite/blob/pu/README.mkd
http://github.com/sitaramc/gitolite/blob/pu/doc/3-faq-tips-etc.mkd#diff -- differences from gitosis (a list that now has about 10 entries)
Disclaimer: I am the author of gitolite. This means I'm biased :-)
here is a very detailed article http://sunoano.name/ws/public_xhtml/scm.html#provide_a_git_repository_to_the_public
$ git clone git://eagain.net/gitosis.git
Cloning into 'gitosis'...
fatal: unable to connect to eagain.net:
eagain.net[0: 50.56.185.182]: errno=Connection refused
git clone https://github.com/tv42/gitosis.git
I followed the tutorial, but the step "git clone git@gitserver:gitosis-admin.git" prompted me for password. The pass I used for generating id_dsa files for the logged in user "xlab" was not accepted. Can you advise on this matter?