Gitolite only asks for a password on a central server with registered SSH

I am running gitlab, which uses gitolite on a central Ubuntu repository and has several users who connect to this computer after adding their public SSH keys via the Gitlab web interface. Various users on their machines can successfully click and pull the repository from the central machine just fine. On the machine itself, I cannot force my user to click or drag to the central repository. It always asks for the git password! How can i fix this?

On a remote computer with a registered SSH key, I get:

myusername@ubuntu :~$ ssh -T git@111.222.333.444 hello my_username_gmail_com_1348772800, this is gitolite v2.2-11-g8c4d1aa-dt running on git 1.7.0.4 the gitolite config gives you the following access: RW repo1 RW repo2 @R_ @W_ testing RW repo3 

It only fails on the server itself, where (although I registered SSH keys), I am always asked to enter a password:

 serverusername@server :~$ ssh -T git@111.222.333.444 git@111.222.333.444 password: 

Here is the output of ssh -tvvv debugging prints: http://pastebin.com/zrNzvzRE

+1
git gitlab repository gitolite
source share
2 answers

I appreciate VonC's attempt to help me. However, the fix was simply rebooting the machine and adding a few new recovered keys. I'm sure I copied them correctly the first few times, but ended up re-creating the key several times. Since it worked, I called it. I understand that this is not a very satisfactory answer ...

+1
source share

Check what ssh -Tvvv git@111.222.333.444 returns in conjunction with sshd -d (debugging session of your ssh daemon)

You should see it somehow not to find git.pub and git (public and private keys with a name after the username) in ~git/.ssh .
These public and private keys can also be saved with their default name ( id_rsa and id_rsa.pub ) on your server ( ~git/.ssh ).

0
source share

All Articles