Error of setup public key for gitolite on ubuntu 12.04 server

匿名 (未验证) 提交于 2019-12-03 02:29:01

问题:

We follow the post (http://www.bigfastblog.com/gitolite-installation-step-by-step) to install gitolite on ubuntu 12.04 server. When doing /home/git/bin/gitolite setup -pk west_org_selfgen.pub, there is an error:

$/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 multiple lines in our public key (west_org_selfgen.pub). We did online search and did not find anyone complaining about this kind of error. Was anyone having the problem before? And how to fix it? Thanks.

回答1:

Make sure you follow gitolite ssh guide

ssh-keygen -t rsa -f west_org_selfgen 

That should create the correct pari of keys, with the public one being written in one long line. See for instance "Creating a SSH key with ssh-keygen does not create the .ssh folder".

I prefer starting without a passphrase for test:

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


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!