当我尝试推送到所有常规存储库时,只要尝试推送到gist.github.com,是什么导致此错误?

时间:2020-01-30 22:40:40

标签: github sha gist

为什么会这样?这是一个秘密要点,我从下面的代码块中删除了PII:

user@NT696918742080085 MINGW64 ~/AppData/Roaming/Code/User (master)
$ git push -u origin master
The authenticity of host 'gist.github.com (xxx.xxx.xxx.xxx)' can't be established.
RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no/[fingerprint])? no
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

1 个答案:

答案 0 :(得分:1)

首先检查您的密钥是否正确识别:

ssh -Tv git@github.com

然后,在“ Pushing to gist”之后,仔细检查您的主要SSH URL,或尝试(使用2FA activated)HTTPS URL。

相关问题