Talk:Gitolite

From ArchWiki
Latest comment: 22 September 2018 by Lahwaacz in topic Suggested Improvements

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.

Agentxp22 (talk) 09:12, 20 September 2018 (UTC)Reply[reply]

You've cut out the context of the existing instructions. The gitolite#Admin SSH access section starts with this:
To give yourself admin access, copy your SSH public key to /var/lib/gitolite/username.pub, where username is your username.
Which tells the same thing as your first note. The "sudo" prefix does not belong there because root is implied by the "#" character, see Help:Reading#Regular_user_or_root. Your second note is unrelated to the presented instructions and I don't see why one out of a million ways the user can shoot himself in the leg should be pinpointed.
-- Lahwaacz (talk) 07:58, 22 September 2018 (UTC)Reply[reply]

Missing Information

  • Remove Repository
  • Change Repository Storage Directory

Agentxp22 (talk) 09:12, 20 September 2018 (UTC)Reply[reply]

The purpose of this page is not to cover everything, brief links to the upstream documentation (in this case [1]) would be sufficient. -- Lahwaacz (talk) 08:05, 22 September 2018 (UTC)Reply[reply]

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 ~~~~!