Reputation: 3552
I use gitolite on a virtual ubuntu machine.
My repos are installed on user named "git".
From my virtual machine, I want to push to the repo, but I'm asked for user "git" password. I do not have a password for "git".
This doesn't help :
cat ~/.ssh/authorized_keys >> /home/myuser/gitolite-admin/keydir/trogne.pub
How can I push to user "git" without having being asked for password ?
Upvotes: 1
Views: 376
Reputation: 1324093
You are always pushing to a gitolite server (installed with default parameters) as user git.
But you need first to register you user key by:
That process will update the gitolite server ~git/.ssh/authorized_keys
and call gitolite shell whenever you are pushing (as git) with ssh (and your public key).
If you are adding your key manually to the server, gitolite won't be called at the next ssh git push.
See "add/remove users" and "how gitolite uses ssh":
Upvotes: 1