gitolite设置得到致命:指纹无法'/ tmp / Q3pnE4WVbu' [英] gitolite setup getting FATAL: fingerprinting failed for '/tmp/Q3pnE4WVbu'

查看:363
本文介绍了gitolite设置得到致命:指纹无法'/ tmp / Q3pnE4WVbu'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CentOS 5.9服务器上安装gitolite。我已经创建了git用户,然后 su - git 我已经设法得到我的公钥到〜/ .ssh /目录,我已成功克隆gitolite repo从github并运行 gitolite / install -ln 。下一步是运行gitolite设置。

I am installing gitolite on a CentOS 5.9 server. I have created the git user, then after su - git I have managed to get my public key into the ~/.ssh/ directory, I have successfully cloned the gitolite repo from github and have run gitolite/install -ln. Next step is to run gitolite setup.

git@hostname [~]# gitolite setup -pk $HOME/.ssh/micha.pub
Initialized empty Git repository in /home/git/repositories/gitolite-admin.git/
Initialized empty Git repository in /home/git/repositories/testing.git/
FATAL: fingerprinting failed for '/tmp/Q3pnE4WVbu'

Google搜索和搜索这里没有帮助我解决这个 FATAL 错误,我现在停止了。

Google search and a search here on SO have not helped me resolve this FATAL error, and I am now stymied.

我应该在运行安装程序之前定制gitolite.conf文件?我一直遵循 http://gitolite.com/gitolite/progit.html 作为他们对我的理解比正常的gitolite文档有点容易。但是这些说明没有提到自定义.conf文件。

Am I supposed to have customised the gitolite.conf file previous to running the setup? I have been following the instructions from http://gitolite.com/gitolite/progit.html as they are a little easier for noob like me to understand than the normal gitolite documentation. However these instructions make no mention of customising the .conf file.

UPDATE:
我尝试生成一个新的密钥,它仍然失败:

UPDATE: I have tried generating a new key and it still fails:

git@hostname [~]# ssh-keygen -t rsa -C "Gitolite Admin Access (not interactive)" -P "" 
Generating public/private rsa key pair.
Enter file in which to save the key (/home/git/.ssh/id_rsa): /home/git/.ssh/micha
/home/git/.ssh/micha already exists.
Overwrite (y/n)? y
Your identification has been saved in /home/git/.ssh/micha.
Your public key has been saved in /home/git/.ssh/micha.pub.
The key fingerprint is:
33:b6:62:8b:b9:58:07:7a:71:6a:02:a5:ff:7e:c3:3a Gitolite Admin Access (not interactive)
git@hostname [~]# gitolite setup -pk $HOME/.ssh/micha.pub
Initialized empty Git repository in /home/git/repositories/gitolite-admin.git/
Initialized empty Git repository in /home/git/repositories/testing.git/
FATAL: fingerprinting failed for '/tmp/pUKqewb66w'

我还尝试用完整路径替换 $ HOME ,以防 su - git 混淆了它。我的ssh安装有一些问题吗?不知道如何使用ssh连接到此服务器。

I have also tried replacing $HOME with the full path, just in case the su - git had confused it. Is there some problem with my ssh install? Not sure how there would be as I am using ssh to connect to this server.

更新: strong>
原来gitolite保留了我以前尝试设置失败的公钥。然后我删除所有的repos,gitolite源目录,符号链接在〜/ bin和.gitolite目录,并再次启动安装过程。我从github克隆gitolite repo,生成一个新的密钥后,删除所有其他的密钥,我曾试图使用。然后我运行 gitolite install -ln ,最后

git@hostname [~]# gitolite setup -pk $HOME/admin.pub
Initialized empty Git repository in /home/git/repositories/gitolite-admin.git/
Initialized empty Git repository in /home/git/repositories/testing.git/
FATAL: fingerprinting failed for '/tmp/tsIx4cKWHj'

失败。

推荐答案

由于我提到

As I mentioned before, that means the ssh key hasn't been properly generated.

请尝试:

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






OP mwotton 报告清除任何先前ssh密钥的〜/ .ssh是解决方案。

这是因为 ssh-authkeys.fp_file() 函数称为找到


The OP mwotton reports clearing the ~/.ssh from any prior ssh keys was the solution.
This is because the ssh-authkeys.fp_file() function is called with a find:

chomp( my @pubkeys = `find keydir/ -type f -name "*.pub" | sort` );

所以它可以抓取以前的(可能已损坏的)已经在〜 /.ssh

So it can grab previous (possibly corrupted) keys that already were in ~/.ssh.

这篇关于gitolite设置得到致命:指纹无法'/ tmp / Q3pnE4WVbu'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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