要在windows设置多账号管理github的代码,一顿操作猛如虎,最后卡在验证不通过,报了如下错误:
1
2
3
4
5
6
7
8
9
| #配置完成后,测试命令
ssh -T [email protected]
#报了如下错误:
#The authenticity of host 'github.com (20.205.243.166)' can't be established.
#ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
#This key is not known by any other names.
#Are you sure you want to continue connecting (yes/no/[fingerprint])?
#Host key verification failed.
|
开始我用百度,现实证明一开始我就错了(不应该用百度),试了好几种方案,突然脑光一闪,谷歌一下,答案就出来了,如下
1
2
3
4
| #问题出在这里,按照国际惯例,不知道怎么填,按回车就可以,恰好回车就是灾难
Are you sure you want to continue connecting (yes/no/[fingerprint])? //这里输入手动 yes,再按回车
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
Hi mioshare! You've successfully authenticated, but GitHub does not provide shell access.
|
上面选择yes后,会在文件:用户文件路径/.ssh/known_hosts,添加对应的证书。
最后发现,如果按照官方的教程,就不会脑壳疼了。