gpt4 book ai didi

git - 安装 gitolite 时我得到 "/tmp/id_rsa.pub does not seem to be a valid ssh pubkey file"

转载 作者:太空狗 更新时间:2023-10-29 13:43:46 24 4
gpt4 key购买 nike

我正在尝试安装 git 和 gitolite 以在 CentOS linux 服务器上进行开发。到目前为止一切都运行正常,除了我使用此命令为 gitolite 定义管理员用户的步骤:

gitolite setup -pk /tmp/id_rsa.pub
FATAL: errors found but logfile could not be created
FATAL: /home/git/.gitolite/logs/gitolite-2013-05.log: No such file or directory
FATAL: die '/tmp/id_rsa.pub' does not seem to be a valid ssh pubkey file

看起来像两个错误;在 /home/git/ 中只有这些文件

.gitolite.rc
.bashrc
.bash_profile
.bash_logout

第二个(这似乎是问题所在)是 pub_key 无效。但是,根据 git 的书,该文件看起来很相似。我是这样生成的:

  1. 在我的电脑(不是服务器)上安装 git

  2. 来自 git bash:

ssh-keygen.exe(default path)(no password)(no password)

我通过名为WinSCP的程序将生成的.pub文件复制到服务器上的tmp目录。

我做错了什么?我在谷歌中找不到答案。

附言。如果您需要更多信息,请告诉我。

最佳答案

我也遇到了这个问题,并查看了 gitolite 的来源。代码基本在执行

ssh-keygen -l -f yourFile.pub

验证文件是否是有效的 ssh-公钥... 在我的机器(OpenWRT 路由器)上没有安装 ssh-keygen。安装它:

opkg update
opkg install openssh-keygen

为我解决了这个问题。

关于git - 安装 gitolite 时我得到 "/tmp/id_rsa.pub does not seem to be a valid ssh pubkey file",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16777348/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com