You are not logged in.
Hi,
I'm trying to install Gitosis on my server. I read the tutorial in the Wiki (https://wiki.archlinux.org/index.php/Gitosis) but I have a problem at the step "gitosis-admin repository".
I correctly set the permissions like in the wiki but I have the following error :
git clone ssh://git@r3v4n.gw-computing.net:38000/srv/gitosis/repositories/gitosis-admin.git
Cloning into gitosis-admin...
Enter passphrase for key '/home/revan/.ssh/id_dsa':
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedlySomeone has a idea ?
Thank you,
Revan
Offline
does the git user have access to the /srv/gitosis/repositories/gitosis-admin.git and is that the right location? On my installation the git user's home directory is /srv/gitosis and I check out repositories with git clone git@myserver:project.git. I also tried it your way and was able to check out a project with git clone ssh://git@myserver/project.git
Offline
Thanks for your answer.
yes it's the right location. I'm sure about that :-)
And the git user has the access to the repository which has a 700 chmod. The owner is git and the group is git too.
Offline
Anyone has an idea ?
Offline
Check the perms on the gitosis-admin repo recursively. Maybe the top level dir was just chmod/chown and not the subtree?
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Yes I did a chmod -R
[root@apophis /srv/gitosis/repositories] # ls -l
total 4
drwx------ 8 git git 4096 Mar 13 13:47 gitosis-admin.git
[root@apophis /srv/gitosis/repositories] # cd gitosis-admin.git
[root@apophis ...itories/gitosis-admin.git] # ls -l
total 44
drwx------ 2 git git 4096 Feb 27 16:43 branches
-rwx------ 1 git git 66 Feb 27 16:43 config
-rwx------ 1 git git 73 Feb 27 16:43 description
-rwx------ 1 git git 81 Mar 5 00:08 gitosis.conf
drwx------ 3 git git 4096 Feb 27 16:43 gitosis-export
-rwx------ 1 git git 23 Feb 27 16:43 HEAD
drwx------ 2 git git 4096 Feb 27 16:43 hooks
-rwx------ 1 git git 264 Feb 27 16:43 index
drwx------ 2 git git 4096 Mar 5 00:06 info
drwx------ 4 git git 4096 Feb 27 16:43 objects
drwx------ 4 git git 4096 Feb 27 16:43 refs
[root@apophis ...itories/gitosis-admin.git] # I even tried with a chmod 777, but it does not work either.
Offline
I found the solution :
http://scie.nti.st/2007/11/14/hosting-g … secure-way
If you run SSH on a non-standard port on your server, don't use the syntax "git@myserver.com:1234:/foo/bar", it won't work. Putting the port in the URL doesn't seem to make gitosis, or git, (not sure which) happy. Instead, put this in your ~/.ssh/config file:
Host myserver.com Port 1234
Offline