Talk:Gitolite

From ArchWiki
Jump to: navigation, search

Suggested Improvements

IS

Admin SSH access

# install -o gitolite -g gitolite ~/.ssh/id_rsa.pub /var/lib/gitolite/username.pub

SHOULD BE

Host User

As a client user, copy the ssh public key to home directory of the gitolite host user.

# sudo install -o gitolite -g gitolite ~/.ssh/id_rsa.pub /var/lib/gitolite/username.pub
Note: The public key file name must correspond to the client user name.
Note: Do not manually append the public key to the host user's '~/.ssh/authorized_keys' file.

Missing Information

Remove Repository

Change Repository Storage Directory

{{Agentxp22 (talk) 09:12, 20 September 2018 (UTC)|07:59, 20 September 2018 (UTC)|Agentxp22}}

id_rsa

useradd -m -U -r -s /bin/bash -d /srv/git git
su - git
gitolite setup -pk id_rsa.pub

Doesnt work:

[root@git gitolite-git]# useradd -m -U -r -s /bin/bash -d /srv/git git
[root@git gitolite-git]# su - git
[git@git ~]$ pwd
/srv/git
[git@git ~]$ gitolite setup -pk id_rsa.pub
FATAL: errors found but logfile could not be created
FATAL: /srv/git/.gitolite/logs/gitolite-2013-05.log: No such file or directory
FATAL: die 'id_rsa.pub' not a readable file

Don't I have to create id_rsa first? Don't I have to mkdir .gitolite first?

—This unsigned comment is by Mindph (talk) 2013-05-08. Please sign your posts with ~~~~!


ISSUE: remote: FATAL: fingerprinting failed for ... pub gitolite arch linux
A QUICK SOLUTION: edit /usr/lib/gitolite/src/triggers/post-compile/ssh-authkeys and update the line:

my $fp = `ssh-keygen -l -f '$f'`;

...to include hashing function:

my $fp = `ssh-keygen -E md5 -l -f '$f'`;

Thanks me later :)

—This unsigned comment is by K3a (talk) 2015-06-21. Please sign your posts with ~~~~!