【问题标题】:Error of setup public key for gitolite on ubuntu 12.04 server在 ubuntu 12.04 服务器上为 gitolite 设置公钥错误
【发布时间】:2013-10-01 20:26:16
【问题描述】:

我们按照帖子 (http://www.bigfastblog.com/gitolite-installation-step-by-step) 在 ubuntu 12.04 服务器上安装 gitolite。在做/home/git/bin/gitolite setup -pk west_org_selfgen.pub的时候,出现错误:

$/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

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

【问题讨论】:

    标签: git ubuntu ssh gitolite


    【解决方案1】:

    请务必关注gitolite ssh guide

    ssh-keygen -t rsa -f west_org_selfgen
    

    这应该创建正确的密钥pari,公共密钥被写在一长行中。参见例如“Creating a SSH key with ssh-keygen does not create the .ssh folder”。

    我更喜欢starting without a passphrase for test

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

    【讨论】:

      猜你喜欢
      • 2016-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-30
      • 1970-01-01
      • 2014-10-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多