我正在尝试使用 Pageant 克隆 cygwin 或 GitBash (msysgit) 中的存储库作为 ssh 密钥。我收到以下错误:
$ git clone git@github.com:username/your-project.git
Cloning into 'your-project'...
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 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
Connection abandoned.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
然而,当尝试使用 gitub 调试您的 ssh 连接时,它说它可以工作
$ ssh -T git@github.com
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
Hi username! You've successfully authenticated, but GitHub does not provide shell access.
并$ ssh-add -l
显示我的 github 个人资料中列出的相同指纹
所以问题不是这里描述的问题:https ://help.github.com/articles/error-permission-denied-publickey