【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文件,修改裏面的驗證文件,使其對應上公鑰配套的私鑰即可