电脑重装系统之后git pull报错 Permission denied (publickey)

357 阅读1分钟

今天我重装了系统,之后使用git pull报如下的错误消息:

git@github.xxx.corp: Permission denied (publickey).
fatal: Could not read from remote repository.

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

解决方法

把重装电脑之前备份到OneDrive上的ssh相关文件,

覆盖到windows的.ssh文件夹下,问题解决:


要获取更多Jerry的原创文章,请关注公众号"汪子熙":