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


git上傳代碼,輸入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 config receive.denyCurrentBranch ignore后  git push -u origin master出現

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

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

 

用命令cd ~/.ssh 和ls查看

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

 

不存在,ssh-keygen -t rsa -C "youremail@example.com"來生成 

若存在‘去C:\Users\Administrator\.ssh中找到公鑰復制后去碼雲中配置完就好了

 

 用ssh -T git@gitee.com命令查看成功(github用ssh -T git@github.com查看)

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM