Gitolit with LDAP does not work

I am new to githolite. I am trying to do a very simple test with guitarite. I installed my repository called "test_repo". Please note that I have not changed anything else other than what I said below. I see this repo on gitweb. This is a repo configuration

repo test_repo
    RW+     =   @all

Now I want to clone this repo. I have ldap access to the server. In my understanding, @all, this should allow me to do this.

when i give out

git clone git@myserver:repositories/test_repo.git 
#I know this is wrong. But I just wanted to test as the above did not work

or

git clone git@myserver:test_repo.git

asks for a password. I followed this guide http://sharadchhetri.com/2013/05/31/how-to-create-own-git-server-with-gitolite-and-gitweb-in-ubuntu/ , which does not set a password for the user git

When i give out

git clone myname@myserver:test_repo.git

I get the following error

fatal: 'test_repo.git' 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.

- "test_repo.git". .

git clone myname@myserver:/home/git/repositories/testing.git

. git push -u origin master ,

error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
! [remote rejected] master -> master (n/a (unpacker error))

: conf

.

+3
2
 git clone myname@myserver:/home/git/repositories/testing.git
  • ,
  • 'myname', git.

:

 git clone git@myserver:test_repo.git
 or
 git clone git@myserver/test_repo.git

"" ( , )

, ssh -Tvvv git@myserver (.. ).
ssh, git clone.


, LDAP ssh , , :

  • Https + LDAP + gitolite: . .
  • SSH +

ssh , , gitolite ~git/.gitolite/logs

. , tail -f . , .

, ssh, gitolite: ~git/.ssh/authorized_keys, , ssh, keys gitolite-admin gitolite ( ~git/.ssh/authorized_keys file).

, . , . gitolite-admin, ( ).
( , ).

+2

ssh git @hostname-or-ip

; . , .

BTW - @localhost git clone

+1

All Articles