服务器拉取代码 [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 即可