首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >git -服务器主机密钥未缓存

git -服务器主机密钥未缓存
EN

Stack Overflow用户
提问于 2011-02-08 17:31:08
回答 20查看 130.6K关注 0票数 106

我尝试将更改从本地存储库推送到远程存储库。当我键入时:

代码语言:javascript
复制
git push origin

我得到以下错误:

代码语言:javascript
复制
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: The remote end hung up unexpectedly

我该如何解决这个问题呢?我在Windows7的命令行中使用git。

编辑

当我尝试做一个简单的ssh时

代码语言:javascript
复制
ssh user@hostname

我得到以下错误:

代码语言:javascript
复制
Could not create directory '/c//%HOMEDRIVE%%HOMEPATH%/.ssh'.
percent_expand: unknown key %H

不知何故,它不会创建目录,因为路径无效。如何解决这个问题?

@eckes:Edit2

我的家设置为%HOMEDRIVE%%HOMEPATH%是正确的吗?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4931384

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档