gitosis installed ,but can not clone on other client

70 views Asked by At

the server show init ok the server

but the client error the cmd capture

fatal: 'gitosis-admin.git' does not appear to be a git repository

fatal: Could not read from remote repository 

use the private key can connect the server by ssh Please make sure you have the correct access rights and the repository exists.

what's wrong!!~

2

There are 2 answers

0
foxundermon On

git clone git@domain:/home/git/repositories/gitosis-admin.git

must use the full path

0
VonC On

You should never use the full path (either with the old obsolete gitosis, or the more recent up-to-date gitolite)

Using the full path defeat the ACL (Access Control Level) put in place by gitosis/gitolite (as illustrated in "Gitosis on Ubuntu can only find repositories in the git->repositories symlink", and that is the same for gitolite).

See "Git on the Server - Gitosis" (if you really must use gitosis): if ~git/.ssh/authgorized_key does contains the public key of the git account, and if you are using those credentials (public/private key of the git account from your client), git@server:gitosis-admin.git should work.