首页 新闻 会员 周边

git连接远程库错误

0
悬赏园豆:5 [已解决问题] 解决于 2017-04-07 15:26

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

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

 怎么解决?
愿赌不服输的主页 愿赌不服输 | 初学一级 | 园豆:129
提问于:2016-07-15 11:30
< >
分享
最佳答案
0

在你的电脑上通过 ssh-keygen -t rsa 命令生成私钥/公钥对,从id_rsa.pub文件中得到公钥,在git服务器(比如github或gitlab)上你的账户设置中添加该公钥。

收获园豆:5
dudu | 高人七级 |园豆:30994 | 2016-07-15 11:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册