gitWarning: Permanently added the ECDSA host key for IP address '212.64.62.174' to the l

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 "[email protected]"来生成 

若存在‘去C:\Users\Administrator\.ssh中找到公钥复制后去码云中配置完就好了

 

 用ssh -T [email protected]命令查看成功(github用ssh -T [email protected]查看)

 

 

 

 

 

相关文章

本篇内容主要讲解“gitee如何上传代码”,感兴趣的朋友不妨来...
这篇“从gitee上下的代码如何用”文章的知识点大部分人都不太...
这篇文章主要介绍“gitee如何下载仓库里的项目”,在日常操作...
本篇内容主要讲解“怎么在Gitee上更新代码”,感兴趣的朋友不...
本文小编为大家详细介绍“怎么将工程托管到gitee”,内容详细...
这篇文章主要介绍了gitee中图片大小如何调整的相关知识,内容...