服务器拉取代码 [root@iZbp1actuhd152iax8l85wZ pc]# git pull [email protected]: 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
[email protected]: 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 [email protected] 即可

 

 


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