获取远程库时,出现错误的解决

在新的电脑设备获取远程库的数据时,提示以下错误:

Permission denied (publickey).
fatal: Could not read from remote repository.

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

原因是在新的设备我没有配置ssh,因此github会拒绝我的请求,解决方式是在新的设备上配置ssh:

详解见以下链接

http://segmentfault.com/a/1190000002645623

原文地址:https://www.cnblogs.com/aissd/p/4894511.html