yaocl
yaocl

Reputation: 111

ssh clone failed in gitolite at a GCP compute engine

After install gitolite in a GCP compute engine and added a new ssh public key in gitolite-admin/keydir/charley_rsa.pub and add a new repo for charley:

conf/gitolite.conf:

repo test
    RW+     =   charley

Then: git clone gitolite-admin in GCP local console is ok.

When we do git clone in remote local pc, it shows 'DENIED by fallthru' error

git clone ssh://git@serverip/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.

( clone testing (@all) in remote local pc is ok )

Upvotes: 1

Views: 153

Answers (2)

yaocl
yaocl

Reputation: 111

finally, it's resolved after updating the public key filename

I used the id: charley in the conf file: gitolite.conf

repo test
    RW+     =   charley

after change the public ssh key filename from "charley_rsa.pub" to "charley.pub"

ssh -i ~/.ssh/id_rsa git@serverip info
hello charley, this is git@serverip running gitolite3 v3.6.6-13-g8bde76d on git 1.8.3.1

 R W    gitolite-admin
 R W    test
 R W    testing

Upvotes: 1

VonC
VonC

Reputation: 1323125

The way you add new keys is by first cloning gitolite_admin repo, modifying it and pushing back: that triggers the recompilation of the ~/.gitolite/ configuration files.

If you do anything directly on the server, then follow "administering gitolite directly on the server"

You would need at least

gitolite compile; gitolite trigger POST_COMPILE

Upvotes: 0

Related Questions