服务器拉取代码 [root@iZbp1actuhd152iax8l85wZ pc]# git pull git@gitee.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights an

服务器拉取代码的时候提示

[root@iZbp1actuhd152iax8l85wZ pc]# git pull
git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

解决方法:

输入  cat ~/.ssh/id_rsa.pub  查看你生成的公钥

 

 

 

 将公钥复制下来,粘贴到公钥框中

 

 

 

点击确定

最后输入ssh -T git@gitee.com 即可

 

 


posted @ 2021-07-27 15:29  fpc  阅读(112)  评论(0编辑  收藏  举报