Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git服务器';的主机项未缓存在注册表中_Git_Ssh_Rsa - Fatal编程技术网

git服务器';的主机项未缓存在注册表中

git服务器';的主机项未缓存在注册表中,git,ssh,rsa,Git,Ssh,Rsa,我尝试将更改从本地回购拉到远程回购。我打字的时候 git pull origin hubert ssh hubert@remove_host 我得到以下错误: The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-r

我尝试将更改从本地回购拉到远程回购。我打字的时候

git pull origin hubert
ssh hubert@remove_host
我得到以下错误:

The server's host key is not cached in the registry. You 
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Connection abandoned.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
但是当我打字的时候

git pull origin hubert
ssh hubert@remove_host
它很好用

我正在使用Windows 7 32位,目录中有相同的文件:

  • C:\Users\hubert\.ssh
  • C:\Users\hubert\AppData\Local\VirtualStore\Program Files\Git\.ssh
感谢您的帮助。

检查
$git\u SSH
的值(在git bash会话中):如果它涉及
plink.exe
,它将不会使用
$HOME/.SSH/known\u host
(已经包括源服务器,因为手动SSH可以工作)

您可以配置plink:

plink.exe hubert@remote_host
# answer 'y'

或者您可以进行设置。

请注意,我遇到了以下错误:
致命错误:断开连接:没有支持的身份验证方法可用(服务器已发送:publickey、gssapi keyex、gssapi with mic)
@hubert GIT\u SSH指的是什么?它指的是
C:\Program Files\putty\plink.exe
@hubert确切地说:或者应该有帮助。我只需将GIT\u SSH值更改为
C:\Program Files\GIT\bin