Error when using ssh clone git

The following error may occur when using ssh address clone

Cloning into 'music'...
The authenticity of host 'gitee.com (*.*.*.*)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'gitee.com,*.*.*.*' (ECDSA) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Solution:
delete the .ssh folder
in the following cmd

ssh-keygen -t rsa -C "仓库账号"
一路回车
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\Administrator/.ssh/id_rsa):  
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\Administrator/.ssh/id_rsa.
Your public key has been saved in C:\Users\Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:c8bnbdAxC2/bpv93AlQKgQURlIpxVu3fgO4iMtuPigc '[email protected]'
The key's randomart image is:
+---[RSA 2048]----+
|       o*Oo.     |
|    . o o o   .  |
|     = . . o.oo  |
|    . .  .o ++ + |
|        S.+ooo=  |
|  E      +.oo+.o |
|   .     .  ..+ o|
|   .+.... .  ..oo|
|  ..o=oo..    .o*|
+----[SHA256]-----+

Id_rsa.pub file generated at this time, and the like to the distal end github warehouse configuration ssh public key, can be

码云:设置->ssh公钥
github:settings->SSH and GPG keys

Guess you like

Origin www.cnblogs.com/dch0/p/11758672.html