Git提交错误:Permission denied (publickey),fatal: Could not read from remote reposito
错误提示:
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相关推荐
- git@github.com:Permission denied(publickey).fatal: Could not read form remote repository错误
文章目录 前言 问题分析 解决方法 配置客户端 配置服务端 验证 前言 在使用goland从github下载依赖时(git clone github.com/gin-gonic/gin)出现git@g ...
- 解决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 ...
- 报错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 ...
- gitHub报错之git@github.com: Permission denied (publickey). fatal: Could not read from remote repository
前言 当我们在新的电脑环境,本地上传到自己的github储存仓库就会出现时密钥不匹配,被拒绝上传. 第一句 git@github.com: Permission denied (publickey). ...
- git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
在使用git拉取文件时说没有权限,错误如下图所示.错误原因是没有进行SSH密钥是设置. 解决方法:(linux环境下),其他环境请转到它的主页面. 1.检测是否存在ssh keys ls -al ~/ ...
- mac下git使用ssh时候的一个小问题:Permission denied (publickey). fatal: Could not read from remote repository.
换了新电脑,配置了git的ssh keys之后就没怎么动过了,反正配置轻车熟路,就没有测试过. 今天更新一个项目的时候,怎么都更新不了,提示如下: > git clone git@github. ...
- 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一 ...
- 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 ...
- 解决方案:stderr: Permission denied (publickey). fatal: Could not read from remote repository
问题背景 代码托管在阿里云Code, Centos7 服务器上部署了Jenkins . 执行完不设置交换秘密生成SSH密钥对: ssh-keygen -t rsa -C "fairy_xin ...
- Permission denied (publickey). fatal: Could not read from remote repository.
博主在github上下载tiny face的的源代码的时候,遇到git clone命令为:git clone --recursive git@github.com:peiyunh/tiny.git 而 ...
最新文章
- 如何通过引入硬注意力机制来学习视觉问答任务?
- Java学习|先定一个小目标比如让行为聚焦
- kafka的简单使用
- 设计模式六:适配器模式
- 职高学的计算机单招考试能换专业吗,高职单招可以随便选专业吗
- linux远程登录ssh免密码
- js 取得数组下标_数组的介绍及使用
- 掌握穷变富的12条原则 迅速从普通人变成有钱人
- 深圳软件开发向前跳转会略过一些节点
- MySQL常用函数 一
- php对字符串简单加密解密,PHP字符串加密解密
- 低压差线性稳压器MPQ2013A-AEC1品牌MPS国产替代
- 将指定 Word 的页眉页脚复制到其他文件中
- Ubuntu 搭建强大的 IDE —— Vim + Vundle + 插件
- 彩色图像的空间域滤波
- 51单片机数字电压表仿真设计_LCD显示
- redis知识盘点【陆】_客户端Jedis
- 运用深度学习进行文本生成
- python的自带数据集_机器学习基础 / 加载scikit-learn自带的数据集 - 汇智网
- 看教程学虚幻四——粒子特效之魔法阵