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

问题描述 投票:1回答:1

为什么会这样?这是一个秘密要点,我从下面的代码块中删除了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.
github sha gist
1个回答
1
投票
首先检查您的钥匙是否正确识别:

ssh -Tv [email protected]

然后,在“ Pushing to gist”之后,仔细检查您的要点SSH URL,或尝试(使用2FA activated)HTTPS URL。
© www.soinside.com 2019 - 2024. All rights reserved.