首页 > 其他 > 详细

往github上推代码虽然添加了ssh公钥,依然报权限不足

时间:2020-01-08 21:52:25      阅读:101      评论:0      收藏:0      [点我收藏+]

1.错误详情

注册了一个新的github账号,添加完ssh公钥之后,push的时候,依然报权限不足

具体信息:

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: Could not read from remote repository.

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

2.解决办法

  • 打开终端
  • 输入下面的命令
ssh-add
  • 然后输入密码,回车之后重新推送代码。成功!!!

往github上推代码虽然添加了ssh公钥,依然报权限不足

原文:https://www.cnblogs.com/changchangchang/p/12168212.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!