Reputation: 436
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://[email protected]:/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?
Upvotes: 1
Views: 2314
Reputation: 1329582
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.
Upvotes: 1