I'm trying to setup gitolite on ubuntu 13.04 the following way:
I create an user for it:
sudo adduser \
--system \
--shell /bin/bash \
--gecos 'git version control' \
--group \
--disabled-password \
--home /home/git \
git
I haven't got a SSH key pair, so i creat one, without passhphrase:
ssh-keygen -t rsa
then i copy it to tmp:
cp .ssh/id_rsa.pub /tmp/myusername.pub
Then change to owner of the copied key to git:
sudo chmod git /tmp/myusername.pub
then i change to the git user, and append it's bin dir to PATH:
sudo su git
echo "PATH=$HOME/bin:$PATH" > ~/.bashrc
finally, run gl-setup with the copied key, and accept the default config:
gl-setup /tmp/local.pub
After it, i type exit, so i go back to the myusername user. Now i try to clone the admin repo, but it asks for password:
myusername@gitserver-virtualbox:~$ git clone git@localhost:gitolite-admin.git
Cloning into 'gitolite-admin'...
git@localhost's password:
What did i do wrong?