I just setup an git repository using gitosis. What I can't figure out is how to add other users. All tutorials I find only says "gather their public SSH keys".
First of I tried to create the locally on my machine (not server) but I kinda figured that's the wrong way to go.
Now I've tried to create public key using PuTTy keygen on a windows machine, saved the key and put it in to the keydir under gitosis-admin directory.
I've tried both git clone git@cn-linuxdev.****.***:tungsten.git
and git clone tor@cn-linuxdev.****.***:tungsten.git
where tor is the name of the file in keydir.
The error generated in auth.log is Failed password for git from 192.168.0.158 port 63305 ssh2
From the windows client I've also tried the password set during setup sudo -H -u git gitosis-init < /tmp/id_rsa.pub
.
This ssh key comes from my local computer. And this password works from there but not the windows client.
I don't quite understand how the ssh-keys work but I would guess they are bound in someway to the computer they are generated on.
So have anyone managed to set up gitosis with other users and windows users? How did you get it to work?