2016-12-16 6 views
1

これは最初、私はあんなgit/gitolite noobであることを前もって謝罪する必要があります。そうgitolite - どのようにクローンを作成し、 "ユーザー"フォルダの下に作成されたRepoにプッシュ

OKになりました。..

問題

次のようになり、私の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-クリエーターの内容は私のsshのID名である「JOHND」です。 確認する必要があるものがわからない

答えて

1

gitolite-adminレポにアクセスできる場合はyou should check the access control rulesです。

info commandでアクセス権があるかどうかを確認する必要があります。

ssh [email protected] info 

また、gitoliteサーバ側で、あなたのクローンを拒否されたルールに言及します、監査ログの~git/.gitolite/logsフォルダを確認することができます。

関連する問題