I've just set up a git + Gitolite server on debian, generated a key pair on my workstation (Windows) with puttygen and register the first pub key using on the server
gitosis setup -pk firstuser.pub
Then I use TortoiseGit to clone the gitolite-admin repo, using url : git@git.myserv.com:gitolite-admin and tel Tortoise to use firstuser.ppk as private key. It works fine until this point.
Then I want to test adding a user and creating a new repo on my workstation.
I add in the conf file a section :
repo testcreation
RW+ = seconduser
I generate on my workstation a second ssh key pair for seconduser. Just put the seconduser.pub in keydir/ commit and push the new config.
Config seam to be alright, my new user pub key added to ~/.ssh/authorized_keys of the git user on server side.
I set up a new repo on my workstation with Tortoise, add a new remote :
name : origin
url : git@git.myserv.com:testcreation
Putty Key : seconduser.ppk
And then push to create repo
TortoiseGit Log :
git.exe push --all --progress "origin"
FATAL: W any testcreation firstuser DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git did not exit cleanly (exit code 128) (1591 ms @ 12/02/2014 12:20:17)
Why does Gitolite identify me as firstuser when I send the senconduser private key ? Does it have something to do with the fact I use two different key on the same workstation ?