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)
config
is a ssh file, put in the~/.ssh
directory in order to specify where the private ssh key is. It also works on Windows, provided you defined first the%HOME%
environment variable. To further debug your issue, you should edit your question with the result ofssh -vvv user@server
. This is first and foremost an ssh issue, but check if yourgitoliteadmin.pub
is registered on the server side in~/.ssh/authorized_keys
.