解决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 from remote repository.
Please make sure you have the correct access rights
and the repository exists.
一:原因分析
Permission denied (publickey) 没有权限的publickey ,出现这错误一般是以下两种原因
- 客户端与服务端未生成 ssh key
- 客户端与服务端的ssh key不匹配
找到问题的原因了,解决办法也就有了,重新生成一次ssh key ,服务端也重新配置一次即可。
二:客户端生成ssh key
在cmd里面输入
ssh-keygen -t rsa -C "xxxxxxxx@qq.com"
ssh-keygen -t rsa -C "youremail@example.com"
xxxxxx@qq.com改为自己的邮箱即可,途中会让你输入密码啥的,不需要管,一路回车即可,会生成你的ssh key。(如果重新生成的话会覆盖之前的ssh key。)
三:输入箭头处路径
四:打开id_rsa.pub文件,并且复制内容
配置服务端
五:在github上打开箭头处,点击Setting
六:点击SSH and GPG keys
七:打开你刚刚生成的id_rsa.pub,将里面的内容复制,进入你的github账号,在settings下,SSH and GPG keys下new SSH key,然后将id_rsa.pub里的内容复制到Key中,完成后Add SSH Key。
八:然后添加后入下图所示
九:用idea再次提交文件到 github上,显示提交成功
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas相关推荐
- git@github.com:Permission denied(publickey).fatal: Could not read form remote repository错误
文章目录 前言 问题分析 解决方法 配置客户端 配置服务端 验证 前言 在使用goland从github下载依赖时(git clone github.com/gin-gonic/gin)出现git@g ...
- 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电脑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 ...
- 报错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 ...
- 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一 ...
- 解决方案:stderr: Permission denied (publickey). fatal: Could not read from remote repository
问题背景 代码托管在阿里云Code, Centos7 服务器上部署了Jenkins . 执行完不设置交换秘密生成SSH密钥对: ssh-keygen -t rsa -C "fairy_xin ...
- 解决git@github.com: Permission denied (publickey). Could not read from remote repository
原因分析 Permission denied (publickey) 没有权限的publickey ,出现这错误一般是以下两种原因 客户端与服务端未生成 ssh key 客户端与服务端的ssh key ...
最新文章
- word count in latex, relatively accurate
- localStorage.getItem 往浏览器里面储存数据到本地localStorage
- linux服务器常用维护命令,Linux服务器维护常用命令
- linux 如何查看fb中分辨率_Ubuntu: Linux下查看本机显示器分辨率(xrandr)
- python 身体BMI指数判断
- 使用ASP.NET MVC、Rabbit WeixinSDK和Azure快速开发部署微信后台
- DIV CSS 网页兼容全搞定 (IE6 IE7 IE8 IE9 火狐 谷歌)
- 代谢组与微生物联合分析实战
- Java软件开发修炼过程
- Android打码函数,Android 马赛克(Mosaics)效果
- 最佳和最快的游戏 DNS 服务器
- xcode-select --install选择安装安装失败:下载失败网络问题(2:散列问题解决方案)
- js MessageBox 类 无插件,支持弹出层(原页面div 或者 div代码),消息框(alert confirm)
- uni-app npm安装以及在uni-APP用npm安装echarts
- 好看的女孩男生拍照姿势大全
- 普通的单模光纤和单模光纤跳线是否可以达到万兆速度?
- C DoEvents
- 修复计算机有什么用,电脑硬盘坏道修复了对以后电脑使用有什么影响吗?
- Java期末考试程序设计—井字棋
- JavaEE学习笔记整理
热门文章
- Ubuntu 安装 JDK 问题
- [译]JavaScript:ES6中的模板字符串简介
- VC++学习(15):多线程
- Oracle中sys和system的区别
- mysql配置文件注解
- Plain text, flat file, 及flat-file database 如何翻译
- Halcon:二维仿射变换实例探究
- qt乱码Could not decode“xxx.cpp“ with “UTF-8“-encoding.Editing not possible问题处理
- jquery 判断是否有类名_Day037-JS、jQuery
- python字符串内建函数_python字符串内建函数