Ubuntu – gitolite on ubuntu 12 always asking for password when trying to clone gitolite-admin

gitgitoliteUbuntu

after several hours of googling and trying (and reading several posts on this page) I still do not know what I am doing wrong. So I would be very happy, if somebody could help me here…

I updated Ubuntu 11.10 to 12.4 LTS and thus had to switch vom gitosis to gitolite (the update removed the deprecated gitosis package; gitosis worked nicely before).
I disabled the old gitosis installation (user gitosis) by removing the authorized_keys and the post update hook and then follwed this tutorial to install gitolite:
http://cisight.com/how-to-setup-git-server-using-gitolite-in-ubuntu-11-10-oneiric/

Everything up to (including) the following line worked fine:

gl-setup /temp/gitadmin.pub

However, when I try to clone (on the same computer with my personal user which has the private key to gitadmin.pub), I am asked to enter the password of "git". However, git has no password (I created a new git user as follows:

sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git

)

Can anybody help me and tell me what I am missing here!?
Thanks!

PS: Git clone from a public github repo works (git was setup up with gitosis some time ago)

Best Answer

i think you have to change your sshd_config file:

PasswordAuthentication no

or add

Match User yourUser

     PasswordAuthentication no