ok so first off, i have to apologize in advance for being such a git / gitolite noob.
ok so now..
problem
there is a folder on my git server that looks like this:
mstgit:/var/git/repositories/user/johnd/tmp.git# ls
HEAD branches config description gl-creator hooks info objects refs
mstgit:/var/git/repositories/user/johnd/tmp.git#
And it shows up in our web inteface (gitolite i guess??) as an empty folder.
I'm trying to clone it using the following command:
localdev:/var/git/mystuff/projectX# git clone [email protected]:user/johnd/tmp.git
Cloning into 'tmp'...
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I don't understand why i'm getting permission denied. I created the user repo on the git server. I logged into the server using the same ssh key that I used to log into the "localdev" box.
Here are the file permissions on the johnd folder, in case it matters:
mstgit:/var/git/repositories/user/johnd/tmp.git# ls -lah
total 44
drwxr-sr-x 7 git git 4.0K Dec 16 20:01 .
drwxr-sr-x 3 git git 4.0K Dec 16 20:01 ..
-rw-r--r-- 1 git git 23 Dec 16 20:01 HEAD
drwxr-sr-x 2 git git 4.0K Dec 16 20:01 branches
-rw-r--r-- 1 git git 66 Dec 16 20:01 config
-rw-r--r-- 1 git git 73 Dec 16 20:01 description
-rw-r--r-- 1 git git 5 Dec 16 20:01 gl-creator
drwxr-sr-x 2 git git 4.0K Dec 16 20:01 hooks
drwxr-sr-x 2 git git 4.0K Dec 16 20:01 info
drwxr-sr-x 4 git git 4.0K Dec 16 20:01 objects
drwxr-sr-x 4 git git 4.0K Dec 16 20:01 refs
Also, the contents on gl-creator is "johnd" which is my ssh id name. not sure what else i should check.
If you have access to the
gitolite-admin
repo, you should check the access control rules.You should check to what you have access with the
info
command.You can also, on the gitolite server side, check the
~git/.gitolite/logs
folder for the audit log which will mention which rule rejected your clone.