1

I've just installed gitolite on my Debian server. Then I cloned gitolite-admin repo and and new public key + following lines to conf file:

repo wallr_common
RW+ = wall

New repo was created after push.

At first I go to authorized_keys and saw that key for new user not exists, then I run ~/.gitolite/keydir$ gl-setup, and the key appears in authorized_keys.

Now I'm trying to clone it but I'm getting error:

git.exe clone --progress -v  "ssh://wall@192.168.1.110:/wallr_common.git" "D:\wallr_common"

Cloning into 'D:\wallr_common'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

git did not exit cleanly (exit code 128) (5834 ms @ 04.07.2013 0:27:46)

What can be the root cause of this?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Alexey Anufriev
  • 415
  • 6
  • 19

1 Answers1

1

You must use the git or gitolite account for your ssh session. Not the user account wall that you registered in gitolite.

That means ssh://git@..., instead of ssh://wall@....

Replace 'git' with the account you used to install gitolite.

See more at "How do programs like gitolite work?".

This is a similar mistake as in this question.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • While using your version I'm getting: R access for wallr_common DENIED to git – Alexey Anufriev Jul 04 '13 at 06:30
  • And what is the *full* output of: `ssh git@192.168.1.110` ? (again assuming here that you did installed gitolite and your bare repos in an account named '`git`': if it isn't the case, please tell me which account you used on the server side). – VonC Jul 04 '13 at 06:49
  • While trying to connect from local machine to server using git user and git.ppk (used for gitolite installation) I'm getting "server refused to allocate pty" – Alexey Anufriev Jul 04 '13 at 10:23
  • @ICE so that is the first step: that ssh command *must* work and return the hello message (see one example at the end of http://stackoverflow.com/a/5041898/6309). As long as this doesn't work, any clone won't work. – VonC Jul 04 '13 at 13:34
  • but I can clone gitolite-admin repo with git user, and I can push it back. The same putty output I'm getting while trying to connect with wall.ppk. But with git user I can work with repo and with wall - no. – Alexey Anufriev Jul 04 '13 at 18:46
  • Strange, I've just tried to clone repo with wall.ppk and ssh://git@... and it works. Thank you for help! – Alexey Anufriev Jul 04 '13 at 18:47