git clone ssh方式报错
提示无权限:
Please make sure you have the correct access rights and the repository exists.
重新配置公钥,仍然无效,用 ssh -vvv git@github.com
测试ssh
发现报错,提示信息为
1
2
3
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ECDSA key fingerprint is SHA256:...
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
输入yes 问题解决
问题原因:
少了一个known_hosts文件,本来密钥文件应该是三个,现在是两个,就会报这样的错误,此时选择yes回车之后,即可,同时生成缺少的known_hosts文件