Error setting up public key for gitolite on ubuntu 12.04 server

We are following the message ( http://www.bigfastblog.com/gitolite-installation-step-by-step ) for installing gitolite on the ubuntu 12.04 server. When executing / home / git / bin / gitolite setup -pk west_org_selfgen.pub, an error occurs:

$/home/git/bin/gitolite setup -pk west_org_selfgen.pub FATAL: errors found but logfile could not be created FATAL: /home/git/.gitolite/logs/gitolite-2013-09.log: No such file or directory FATAL: die 'west_org_selfgen.pub' not a readable file 

There are several lines in our public key (west_org_selfgen.pub). We did an online search and did not find anyone who complained about such a mistake. Has anyone had a problem before? And how to fix it? Thanks.

+1
git ssh ubuntu gitolite
source share
1 answer

Make sure you follow the gitolite ssh guide

 ssh-keygen -t rsa -f west_org_selfgen 

This should create the correct key password, and the public one in one long line. See For example, Creating an SSH key with ssh-keygen does not create a .ssh folder .

I prefer to start without a passphrase for the test :

 ssh-keygen -t rsa -f "${H}/.ssh/myKey" -C "Gitolite Admin access (not interactive)" -q -P "" 
+1
source share

All Articles