• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
孜然&胡椒
博客园    首页    新随笔    联系   管理    订阅  订阅

(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查看)

 

 

 

 

 

posted @ 2019-11-10 15:53  孜然&胡椒  阅读(9500)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3