Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I try to setup a git server with gitolite and make some repositories public.

I installed gitolite, configured it for the user git and everything works fine. Permissions and UMask are set to 0027, to allow redmine to read within git repositories.

UMASK                           =>  0027

I installed the package git-daemon-run and added the following line :

repo myrepo
    RW+ = @users
    R = daemon

I adjusted the --base-path directive in /etc/sv/git-daemon/run file to the /home/git/repositories directory.

But when I launch the command git clone git@gitserver.tld:myrepo from an "anonymous" server, the server prompt for a passphrase (git@gitserver.tld's password) !

This happens also if I launch git daemon as a git user

 $ git daemon --base-path=/home/git/repositories --reuseaddr

My repo is not a public repo...

How to setup the server not to prompt for password ?

share|improve this question

1 Answer 1

I found the solution: when I run git's client, I must connect using the git protocol.

 git clone git@gitserver.tld:myrepo #git through ssh protocol
 git clone git://gitserver.tld/myrepo #use of git protocol

The use of git protocol works like a charm !

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.