(git)Warning: Permanently added the ECDSA host key for IP address '212.64.62.174' to the list of known hosts. Permission denied (publickey)

After git upload code input error git push -u origin master

Warning: Permanently added the ECDSA host key for IP address '212.64.62.174' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights

git push -u origin master after input git config receive.denyCurrentBranch ignore

Permission denied (publickey).
fatal: Could not read from remote repository.

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

 

Check with the command cd ~ / .ssh and ls

PS E:\Angular-test-demo\dist> cd ~/.ssh
PS C:\Users\zx\.ssh> ls

 

Does not exist, ssh-keygen -t rsa -C "[email protected]" is generated 

If there 'to C: after \ Users \ Administrator \ .ssh copy the public key to find the code like a cloud configuring

 

 View success with ssh -T [email protected] command (github -T [email protected] view with ssh)

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/z-ling/p/11830529.html