I am trying to setup gitolite on Ubuntu Server! It seems to work as I could clone gitolite-admin
But when I try to issue the command on the client
git clone gitolite@ubuntu-server:testing
It ask for a password for gitolite, but my ssh password that I configured on the client is not accepted
Have I done anything wrong somewhere?
I did copy the .pub to the server and ran gl-setup without problems
NB: I am very green with git
Check the content, on the server gitolite account, of:
You should see your public key within a gitolite start / gitolite-end:
Make sure to use the latest gitolite (V3), which is the case if you have:
(you can execute:
gitolite-shell xxxon the server to check what version you are using)Make also sure to not protect (at least at first) your private ssh key with a password.
If it keeps asking you for a password, edit your question with the content of:
The OP adds:
That means now the ssh part is running properly, however don’t forget your first push must be a:
(see “git push origin master:refs/heads/master what does this do“)
That is because the default push policy (which might change soon) is to push matching branches (and if you didn’t push anything yet, there wouldn’t be a
masterbranch on the remote repo yet)The other trick is to make sure you are on a branch before pushing
(and not trying to push while you are in a detached head mode)