安裝gitolite後在GCP計算引擎故障,在gitolite-admin/keydir/charley_rsa.pub
增加了一個新的SSH公共密鑰和增加對charley
一個新的回購協議:SSH克隆在gitolite在GCP計算引擎
conf/gitolite.conf
:
repo test
RW+ = charley
然後:在GCP本地控制檯中輸入git clone gitolite-admin
即可。
當我們在偏遠的本地PC做git clone
,它顯示錯誤「由fallthru被拒絕」
git clone ssh://[email protected]/test
Cloning into 'test'...
FATAL: R any test charley_rsa DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
(克隆testing (@all)
在偏遠地方PC是確定)
是新的密鑰加入到gitolite。它直接在GCP服務器中完成,因爲我克隆了gitolite-admin並在GCP服務器控制檯中編輯gitolite.conf。 – yaocl
@yaocl是的,所以我的答案站:仔細按照http://gitolite.com/gitolite/odds-and-ends/#administering-gitolite-directly-on-the-server – VonC
我敢肯定,gitolite的安裝過程是確定的因爲我已經在本地docker實例中測試了安裝。 – yaocl