我尝试将更改从本地存储库推送到远程存储库。当我键入时:
git push origin
我得到以下错误:
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时
ssh user@hostname
我得到以下错误:
Could not create directory '/c//%HOMEDRIVE%%HOMEPATH%/.ssh'.
percent_expand: unknown key %H
不知何故,它不会创建目录,因为路径无效。如何解决这个问题?
@eckes:Edit2
我的家设置为%HOMEDRIVE%%HOMEPATH%
是正确的吗?
https://stackoverflow.com/questions/4931384
复制相似问题