I am trying to clone the gitolite-admin.git repo from my own server after "successfully" installing gitolite (multiple ways: apt-package, github source), but it always gives the same error.
$ git clone git@******:gitolite-admin
Cloning into 'gitolite-admin'...
git@******'s password:
fatal: 'gitolite-admin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
My setup
- on git user
- Ubuntu 20.04
I tried
- gitolite3 apt-package
- gitolite github version
- editing ~/.ssh/conf (from a previous stack overflow solution 8 years ago)
- access from same machine, but different user
- access from my main pc (different network)
I read/watched
- YouTube installations (from 2013)
- solutions from multiple different websites
- applying ssh sections from gitolite
- ...and nearly the whole docs from gitolite
What I discovered/think
- keydir for example doesnt even exist in my installation
- changing ~/.ssh/config didnt do anything
- most of previous solutions are simply outdated
I started working with gitolite only since today but already feel quite exhausted I am open for any solution offered, please help me if you can :)
Check first your
~git/.ssh/authorized_keyson the Gitolite server: if you want to clone a gitolite-managed repository (including the maingitolite-adminone), your public key should be:~git/.ssh/authorized_keysfile,command="[path]/gitolite-shell(as I detail in "How do programs like gitolite work?")Otherwise, assuming your public key is registered (not for gitolite, just for regular interactive SSH session), then your clone would be:
The OP justsomexanda adds in the comments: