i try to setup gitlab and follow the installation guide on https://github.com/gitlabhq/gitlabhq/blob/stable/doc/install/installation.md.
My curent problem occurs when doing a smoketest on gitolite, with the following command
# Clone the admin repo so SSH adds localhost to known_hosts ...
# ... and to be sure your users have access to Gitolite
sudo -u gitlab -H git clone git@localhost:gitolite-admin.git /tmp/gitolite-admin
The problem is the access syntax (repository notation) for the git repository: git@localhost:gitolite-admin.git
It works with the following repository notation, but i have to enter a the password for the user git: sudo -u gitlab -H git clone git@localhost:/home/git/repositories/gitolite-admin.git /tmp/gitadminab
somehow the rsa-key is not correct setup for localhost and the shortcut to the repository does not work, as I have to specify the full path to the git repository.
How to fix that?
cheers -- jerik
I confirm that
sudo -u git -H sh -c "PATH=/home/git/bin:$PATH; gitolite setup -pk /home/git/gitlab.pub") did properly register that key in ~git/.ssh/authorized_keys file.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With