【发布时间】:2017-06-13 00:51:47
【问题描述】:
我正在使用双因素身份验证,这就是为什么 HTTPS 不是使用 GitHub 存储库和 gists 的便捷方式。
我的 ~/.ssh 目录中有正确的 config 和 github_pr_key 文件。
我能够克隆我所有的个人和公共存储库。
但我无法通过 SSH 克隆我的任何私人或公共 gists,我有这个错误:
~/Desktop >> git clone git@gist.github.com:d1b8041051e62aa34f337b3dabc77d9a.git
Cloning into 'd1b8041051e62aa34f337b3dabc77d9a'...
The authenticity of host 'gist.github.com (192.30.253.118)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl22E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gist.github.com,192.30.253.118' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
如何解决?
【问题讨论】: