当前位置:   article > 正文

git报错: Could not read from remote repository.Please make sure you have the correct access rights_fatal: could not read from remote repository. plea

fatal: could not read from remote repository. please make sure you have the

git报错: Could not read from remote repository.Please make sure you have the correct access rights

ERROR: Permission to apache/flink-cdc.git denied to ysksolution.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
  • 1
  • 2
  • 3
  • 4
  • 5

出现这个问题,主要是因为ssh-key没有配置,解决方案:
(1)检查git初次配置,是否设置了user和email
设置user和邮箱,首次使用,必须要设置

git config --global user.name username
git config --global user.email email 
  • 1
  • 2

检查内容

 git config --list
  • 1

(2)取消各种代理

git config --global --unset http.proxy
git config --global --unset https.proxy
  • 1
  • 2

(3)配置ssh key

rm -rf ~/.ssh/
ssh-keygen -t rsa -C email(邮箱名)
  • 1
  • 2

将生成的公钥复制到github中,进入setting界面
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/一键难忘520/article/detail/963633
推荐阅读
相关标签
  

闽ICP备14008679号