GIT clone project appears: The authentication of host 'gitee.com (xxx.xxx.xxx.xxx)' can't be established.

When generating a new key, when git clone or push, such an error may be reported:


The authenticity of host 'gitee.com (xxx.xxx.xxx.xxx)' can't be established.

ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxx.

Google later realized that there was a known_hosts file missing in the folder. Originally there should be three key files, but now there are only two, so this error was reported. At this time, after entering yes and pressing Enter, the missing known_hosts file was generated. can solve this problem:


Are you sure you want to continue connecting (yes/no)? //输入yes,回车

Warning: Permanently added 'gitee.com,xxx.xxx.xxx.xxx' (ECDSA) to the list of known hosts.

ssh_packet_read: Connection closed

Author: Yue Ling
Link: https://www.jianshu.com/p/629fefe5468a
Source: Jianshu
The copyright belongs to the author. For commercial reprint, please contact the author for authorization, for non-commercial reprint, please indicate the source.

Guess you like

Origin blog.csdn.net/yzvampire/article/details/107427459