2

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 [email protected]:myrepo from an "anonymous" server, the server prompt for a passphrase ([email protected]'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 ?

1 Answer 1

1

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

 git clone [email protected]:myrepo #git through ssh protocol git clone git://gitserver.tld/myrepo #use of git protocol 

The use of git protocol works like a charm !

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.