2016-12-16 67 views
1

好吧,所以首先,我必須事先爲這樣的git/gitolite noob道歉。gitolite - 如何克隆和推動在「用戶」文件夾下創建的回購

確定,所以現在..

問題

有看起來像這樣我的git服務器上的文件夾:

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# 

而且它在我們的網頁inteface顯示出來(gitolite我想??)作爲一個空的文件夾。

我嘗試使用下面的命令來克隆它:

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. 

我不明白爲什麼我得到許可被拒絕。我在git服務器上創建了用戶回購協議。我使用我用來登錄到「localdev」框的相同ssh密鑰登錄到服務器。

下面是對文件夾JOHND文件的權限,如果它的事項:

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 

此外,在GL-創作者的內容是「JOHND」這是我的SSH ID名稱。 不知道還有什麼我應該檢查。

回答