相关疑难解决方法(0)

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

我尝试将更改从我的本地仓库推送到远程仓库.当我输入:

git push origin
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

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
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?我在Windows 7中使用命令行中的git.

编辑

当我尝试做一个简单的ssh

ssh user@hostname
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Could not create directory '/c//%HOMEDRIVE%%HOMEPATH%/.ssh'.
percent_expand: unknown key %H
Run Code Online (Sandbox Code Playgroud)

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

@eckes:Edit2

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

windows git ssh putty plink

100
推荐指数
4
解决办法
11万
查看次数

如何克隆github项目以在本地运行?

我正在尝试关注authlogic的这个railscast教程 - 它指向这里的源代码-

我安装了git - 如何将源代码复制到我的localhost,以便我可以像在截屏视频中那样关注教程?

git github

96
推荐指数
2
解决办法
12万
查看次数

标签 统计

git ×2

github ×1

plink ×1

putty ×1

ssh ×1

windows ×1