【Git问题解决】[email protected]: Permission denied (publickey).

问题:

[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.

解决办法:

重新生成ssh并把公钥添加到gitee(可先尝试这种方式)也不行,后来在公钥id_rsa.pub对应路径下找到config文件,修改里面的验证文件,使其对应上公钥配套的私钥即可

【Git问题解决】[email protected]: Permission denied (publickey).