将项目推向远程分支遇到的问题
2022-04-24 本文已影响0人
飞鹩
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
解决方式,在git上重新设置公钥(SSH key)
1、 获取ssh keygen
在git bash中输入ssh-keygen -t rsa -C "自己git账号"
2、cat上面生成的文件
cat /c/Users/gmx/.ssh/id_rsa.pub
3、在git上设置ssh key
title随便写,Key复制上面生成的字符
参考地址:https://blog.csdn.net/qq_41999617/article/details/83691324