I am trying to get an git server repository running.
I did install gitolite
when running git info over ssh the server answers
ssh git@myserver info
hello Brian, this is git@hepide01pep1 running gitolite3 on git 1.6.3.2
R W testing
When trying to clone the gitolite-admin repository I get the following error
git clone git@myserver:gitolite-admin
Cloning into 'gitolite-admin'...
FATAL: R any gitolite-admin Brian DENIED by fallthru
(or you mis-spelled the reponame)
fatal: The remote end hung up unexpectedly
Same thing happens with this syntax
git clone ssh://git@myserver/gitolite-admin
Cloning into 'gitolite-admin'...
FATAL: R any gitolite-admin Brian DENIED by fallthru
(or you mis-spelled the reponame)
fatal: The remote end hung up unexpectedly
Cann anybody give me some useful hints? I checked the Answers here and on the web but didn’t find anything that helped me any further.
gitolite-adminis only accessible with the public key named after the git account used for the gitolite server.You are using by default your
brian.pub, which only gives you access totesting.gitrepo.you need to define a
$HOME/.ssh/configfile on your local workstation, in order to record ssh parameters to use the right key.See “gitolite: can connect via ssh, can’t clone“.
The clone will work:
The OP macbert confirms:
So with the right default key, a
ssh git@myserver infoshould this time display the right access forgitolite-adminrepo in the ‘hello’ message.