Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"ERROR:gitosis.serve.main:Repository read access denied" when trying to clone a git repo

I have one desktop PC running Ubuntu 11.04 and one Netbook running Debian 6.0.1a. I have installed and configured git as described here, on my desktop PC.

I am also learning Symfony and have setup a repository for the Jobeet project on my PC. Now, when I try to clone the repository from Debian on my Netbook, I get this error:

ERROR:gitosis.serve.main:Repository read access denied

I have setup ssh and can easily connect to the Ubuntu from Debian with ssh.

Contents of my gitosis.conf:

[gitosis]


[group symfony]
writable = jobeet
members = ako@ako-ubuntu-11 ako@debian

[group team]
writable = testproject
members = ako@ako-ubuntu-11 ako@debian

[group gitosis-admin]
members = ako@ako-ubuntu-11 ako@debian
writable = gitosis-admin

I have copied the id_rsa.pub file (public key of the Debian user) to the keydir directory too, and pushed back to the gitosis repo.

I am able to clone the repository from Ubuntu machine, so I think it has something to do with the permissions and/or ssh.

Any help is greatly appreciated.

like image 258
Omid Kamangar Avatar asked May 26 '11 13:05

Omid Kamangar


1 Answers

First I would use gitolite instead. Gitosis is no longer actively developed.

Check that you need to name the public key to your user name that appears in the config. Your public key that you commit should be renamed to jobeet.pub.

Hope this helps.

like image 122
Adam Dymitruk Avatar answered Sep 28 '22 06:09

Adam Dymitruk