ubuntu 12.04服务器上gitolite设置公钥的错误 [英] Error of setup public key for gitolite on ubuntu 12.04 server

查看:675
本文介绍了ubuntu 12.04服务器上gitolite设置公钥的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们按照该帖子( http://www.bigfastblog.com/gitolite -installation-step-by-step )在ubuntu 12.04服务器上安装gitolite。

  $ / home / git / bin / gitolite setup -pk west_org_selfgen.pub出现错误: git / bin / gitolite setup -pk west_org_selfgen.pub 
FATAL:发现错误但无法创建日志文件
致命错误:/home/git/.gitolite/logs/gitolite-2013-09.log:No这样的文件或目录
FATAL:'west_org_selfgen.pub'不是可读文件

在我们的公钥中有多行(west_org_selfgen.pub)。我们做了在线搜索,没有发现有人抱怨这种错误。有没有人有过这个问题?以及如何解决它?谢谢。 解决方案

确保遵循 gitolite ssh指南

  ssh-keygen -t rsa -f west_org_selfgen 

这应该创建一个正确的键,其中公有的键被写入一个长行。请参阅使用ssh-keygen创建SSH密钥不会创建.ssh文件夹



我更喜欢开始时没有用于测试的密码

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


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.

解决方案

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 ""

这篇关于ubuntu 12.04服务器上gitolite设置公钥的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆