从 Git 中提取失败并给我以下错误:client_global_hostkeys_private_confirm:服务器为 RSA 密钥 0 提供了错误的签名 [英] Pulling from Git fails and gives me following error: client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0

查看:78
本文介绍了从 Git 中提取失败并给我以下错误:client_global_hostkeys_private_confirm:服务器为 RSA 密钥 0 提供了错误的签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在和我的队友一起做一个项目.几周前,我成功地从 git 中提取了该项目.但是今天,当我想通过命令git pull origin <my_branch>"拉取更新的项目时,它给了我以下错误:

I am working on a project with my teammates. Some weeks ago, I pulled the project from git successfully. But today when I wanted to pull the updated project via the command "git pull origin <my_branch>", it gave me the following error:

client_global_hostkeys_private_confirm:服务器为 RSA 密钥 0 提供了错误的签名

我使用命令 ssh-keygen 生成了公钥,然后将新生成的文件 id_rsa.pub 的内容粘贴到Add一个 SSH 密钥"Git 的部分,但是 pull 命令不起作用.有人可以帮我吗?

I have generated the public key using the command ssh-keygen and then pasted the content of the new generated file id_rsa.pub in the "Add an SSH key" section of Git, But the pull command did not work. Could somebody help me?

推荐答案

您忘记告诉我们您使用的是哪个 git 提供程序.

You forgot to tell us which git provider you are using.

我敢打赌你正在使用 GitLab.

I bet you are using GitLab.

消息client_global_hostkeys_private_confirm:服务器为 RSA 密钥 0 提供了错误的签名"现在从 GitLab 收到,不是一个错误,它是一个警告,它与 GitLab 当前遇到的一些 ssh 版本控制问题有关.

The message "client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0" is being received from GitLab nowadays, is not an error, it is a warning, and it is related to some ssh versioning issue that GitLab is currently experiencing.

如果你想让它消失,你可以确保你的 ~/.ssh/config 包含以下内容:

If you want it to go away, you can make sure that your ~/.ssh/config contains the following:

Host gitlab.com
    UpdateHostKeys no

但是,如果您实际上被阻止拉动,那么这个糟糕的签名警告可能是不是的原因.一旦警告消失,您仍然需要找到真正的问题,我们对此一无所知,就像现在的问题一样.

However, if you are in fact being prevented from pulling, then this bad signature warning is probably not the reason. Once you make the warning go away, you will still have to find the real problem that you have, about which we know nothing, as the question stands right now.

这篇关于从 Git 中提取失败并给我以下错误:client_global_hostkeys_private_confirm:服务器为 RSA 密钥 0 提供了错误的签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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