代码之家  ›  专栏  ›  技术社区  ›  user938363

在ubuntu 12.04服务器上为gitolite设置公钥时出错

  •  1
  • user938363  · 技术社区  · 12 年前

    我们关注帖子( http://www.bigfastblog.com/gitolite-installation-step-by-step )在ubuntu 12.04服务器上安装gitolite。在执行/home/git/bin/gitolite设置-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)中有多行。我们进行了在线搜索,没有发现任何人抱怨这种错误。以前有人有这个问题吗?如何修复?谢谢

    1 回复  |  直到 12 年前
        1
  •  1
  •   Community Mohan Dere    9 年前

    请务必遵守 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 ""