Talk:Gitolite

From ArchWiki
Jump to: navigation, search

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