错误提示:

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

沃德天,谁动我电脑了,昨天还好好的~~~~~

昨天->操作过id_rsa_pub文件

是谁???这么不要脸

好像是我。。。

好吧重新配置下公钥:

执行:ssh-keygen -t rsa -C “邮箱地址”

然后出现: Enter file in which to save the key (/Users/wyd/.ssh/id_rsa):(公钥名称,默认是 id_rsa.pub)

之前连接别的重新生成了id_rsa.pub,就是没有写名字一路回车爽啊,之前的id_rsa.pub被新的覆盖了,之后杯具就是无法连接git了

所以我们这里写test(我是随便起的,你们随意)

然后一路回车吧

来看生成的文件:

最后关键的一步:将自己起的名字加入到ssh中

ssh-add ~/.ssh/test

然后复制test.pub内容到git的ssh文件中,这样就妥了

插曲:记得去掉文件的换行,怎么换——>google

转载于:https://juejin.im/post/5beec967f265da612b132f14

Git提交错误:Permission denied (publickey),fatal: Could not read from remote reposito相关推荐

  1. git@github.com:Permission denied(publickey).fatal: Could not read form remote repository错误

    文章目录 前言 问题分析 解决方法 配置客户端 配置服务端 验证 前言 在使用goland从github下载依赖时(git clone github.com/gin-gonic/gin)出现git@g ...

  2. 解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas

    今天用idea提交代码到github上,push后报错 git@github.com: Permission denied (publickey). fatal: Could not read fro ...

  3. 报错git@gitee.com: Permission denied (publickey). fatal: Could not read from remote repository

    报错如下: git@gitee.com: Permission denied (publickey). fatal: Could not read from remote repository. Pl ...

  4. gitHub报错之git@github.com: Permission denied (publickey). fatal: Could not read from remote repository

    前言 当我们在新的电脑环境,本地上传到自己的github储存仓库就会出现时密钥不匹配,被拒绝上传. 第一句 git@github.com: Permission denied (publickey). ...

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

    在使用git拉取文件时说没有权限,错误如下图所示.错误原因是没有进行SSH密钥是设置. 解决方法:(linux环境下),其他环境请转到它的主页面. 1.检测是否存在ssh keys ls -al ~/ ...

  6. mac下git使用ssh时候的一个小问题:Permission denied (publickey). fatal: Could not read from remote repository.

    换了新电脑,配置了git的ssh keys之后就没怎么动过了,反正配置轻车熟路,就没有测试过. 今天更新一个项目的时候,怎么都更新不了,提示如下: > git clone git@github. ...

  7. git clone报错:Permission denied (publickey). fatal: Could not read from remote repository...

    原文:git clone报错:Permission denied (publickey). fatal: Could not read from remote repository- 今天clone一 ...

  8. MAC电脑gitt@github.com: Permission denied (publickey). fatal: Could not read from remote repository

    本地上传代码时,执行命令:git push -u origin master遇到下面错误提示 gitt@github.com: Permission denied (publickey). fatal ...

  9. 解决方案:stderr: Permission denied (publickey). fatal: Could not read from remote repository

    问题背景 代码托管在阿里云Code, Centos7 服务器上部署了Jenkins . 执行完不设置交换秘密生成SSH密钥对: ssh-keygen -t rsa -C "fairy_xin ...

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

    博主在github上下载tiny face的的源代码的时候,遇到git clone命令为:git clone --recursive git@github.com:peiyunh/tiny.git 而 ...

最新文章

  1. 如何通过引入硬注意力机制来学习视觉问答任务?
  2. Java学习|先定一个小目标比如让行为聚焦
  3. kafka的简单使用
  4. 设计模式六:适配器模式
  5. 职高学的计算机单招考试能换专业吗,高职单招可以随便选专业吗
  6. linux远程登录ssh免密码
  7. js 取得数组下标_数组的介绍及使用
  8. 掌握穷变富的12条原则 迅速从普通人变成有钱人
  9. 深圳软件开发向前跳转会略过一些节点
  10. MySQL常用函数 一
  11. php对字符串简单加密解密,PHP字符串加密解密
  12. 低压差线性稳压器MPQ2013A-AEC1品牌MPS国产替代
  13. 将指定 Word 的页眉页脚复制到其他文件中
  14. Ubuntu 搭建强大的 IDE —— Vim + Vundle + 插件
  15. 彩色图像的空间域滤波
  16. 51单片机数字电压表仿真设计_LCD显示
  17. redis知识盘点【陆】_客户端Jedis
  18. 运用深度学习进行文本生成
  19. python的自带数据集_机器学习基础 / 加载scikit-learn自带的数据集 - 汇智网
  20. 看教程学虚幻四——粒子特效之魔法阵

热门文章

  1. iOS:NSDate的主要几种时间形式
  2. 基于FTP4J组件的FTP操作客户端
  3. linux 卸载pppoe,列“State”不属于表 。
  4. 多元Huffman编码问题
  5. 淘宝商品比价定向爬虫
  6. 1121 Damn Single(25 分)
  7. Hurdles of 110m ZOJ - 2972 (简单DP)
  8. A - 棋盘问题 POJ - 1321(深搜)
  9. Slava and tanks(CodeForces - 877C)
  10. awk字符串匹配与传参