I’ve been trying very hard to get gitolite working. I used the package approach and am able to do a first “git push” with a first user to the server. After that, if if I add a key and try to push something again, I get an error saying “W access for gitolite-admin DENIED to mike”- note that it’s supposed to be using the gitolite user- not my username. I guess this is because I’m adding private keys for both users in my .bash_profile. (I’m using msysgit)…
Any ideas?
Thanks a lot!
True, you should use a dedicated public/private key for the
gitoliteuser, the one which is also used for ssh access.You can confirm it by looking in the gitolite logs (in
~gitolite/.gitolite/logs)Using multiple keys is done through a
configfile.See as an example “users are asked for password while using gitolite“.
The
%HOME%/.ssh/configfile could contain something like:Don’t forget to define
HOMEis you are on Windows: it isn’t defined by default)The OP Mike Gagnon confirms in the comments the following config is working: