[英]Gitolite - remote: FATAL: fingerprinting failed for 'keydir/'
I installed Gitolite in my system to manage the repositories.我在我的系统中安装了 Gitolite 来管理存储库。 When i try to add any of the client machine's public key, am getting the error "remote: FATAL: fingerprinting failed for 'keydir/".
当我尝试添加任何客户端计算机的公钥时,出现错误“远程:致命:'keydir/ 的指纹识别失败”。 Would you please help me to resolve this problem.
你能帮我解决这个问题吗。
I just hit this problem while working on a new install.我刚刚在进行新安装时遇到了这个问题。 There was a change to the key fingerprint format in OpenSSH at version 6.8:
OpenSSH 在 6.8 版本中对密钥指纹格式进行了更改:
Add FingerprintHash option to ssh(1) and sshd(8), and equivalent command-line flags to the other tools to control algorithm used for key fingerprints.
将 FingerprintHash 选项添加到 ssh(1) 和 sshd(8),并将等效的命令行标志添加到其他工具以控制用于密钥指纹的算法。 The default changes from MD5 to SHA256 and format from hex to base64.
默认值从 MD5 更改为 SHA256,格式从十六进制更改为 base64。
Fingerprints now have the hash algorithm prepended.
指纹现在具有哈希算法。 An example of the new format: SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE Please note that visual host keys will also be different.
新格式的示例:SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE 请注意,可视主机密钥也会有所不同。
The latest git checkout of gitolite is aware , since 18th March '15, of this new format.自 2015 年 3 月 18 日起,gitolite 的最新 git checkout 就知道了这种新格式。
As I documented in " Getting fatal: object is corrupted when pushing to a remote repo ", this is due to an incorrect ssh key.正如我在“变得致命:推送到远程存储库时对象已损坏”中所述,这是由于 ssh 密钥不正确。
I like to generate my private/public keys like so (not password protected):我喜欢像这样生成我的私钥/公钥(不受密码保护):
ssh-keygen -t rsa -f "$HOME/.ssh/git" -C "Gitolite access (not interactive)" -q -P ""
This message can also be seen after adding SSH2 (Putty) key to gitolite.将 SSH2 (Putty) 密钥添加到 gitolite 后也可以看到此消息。 In that is the case a simple conversion from SSH2 to OpenSSH key can be done this way:
在这种情况下,可以通过以下方式完成从 SSH2 到 OpenSSH 密钥的简单转换:
ssh-keygen -i -f ssh2.pub > openssh.pub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.