Could not read from remote repository.Please make sure you have the correct access rights.and the re

Could not read from remote repository.Please make sure you have the correct access rights.解决方法 我们在使用git clone 或其他命令的时候,有时候会遇到这类问题,如图:fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.fatal: Could not read from remote reposi... 阅读详情

$git install 报错提示:

Could not read from remote repository.Please make sure you have the correct access rights.and the repository exists.

如何生成SSH key

1. 检查SSH keys是否存在

输入下面的命令,如果有文件id_rsa.pub 或 id_dsa.pub,则直接进入步骤3将SSH key添加到GitHub中,否则进入第二步生成SSH key

ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist

2. 生成新的ssh key

第一步:生成public/private rsa key pair
在命令行中输入ssh-keygen -t rsa -C "your_email@example.com"

第二步:输入passphrase(本步骤可以跳过)

设置passphrase后,进行版本控制时,每次与GitHub通信都会要求输入passphrase,以避免某些“失误”

Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]

sample result:

Your identification has been saved in /your_home_path/.ssh/id_rsa.
Your public key has been saved in /your_home_path/.ssh/id_rsa.pub.
The key fingerprint is:
#01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@example.com

第三步:将新生成的key添加到ssh-agent中:

# start the ssh-agent in the background
eval "$(ssh-agent -s)"
Agent pid 59566
ssh-add ~/.ssh/id_rsa

3. 将ssh key添加到GitHub/Gitlab中

用自己喜欢的文本编辑器打开id_rsa.pub文件,里面的信息即为SSH key,将这些信息复制到GitHub/Gitlab的Add SSH key页面即可



问题重现:我在使用过程中漏掉了将新生成的key添加到ssh-agent中 导致系统每次获取的都是钥匙串访问中原有的的ssh  

解决方案:

1.删除钥匙串访问中原有的的ssh 

2.将新生成的key添加到ssh-agent中

$ssh -add -K ~/.ssh/id_rsa















git提交出现”Could not read from remote repository.Please make sure you have the correct access rights”错误            一、我在使用git 的遇到“Could not read from remote repository.Please make sure you have the correct access rights”开始看不懂是什么错,然后自己百度一下,发现是ssh key的问题,看了答案但都不是很完整,所以自己整理一哈,加深印象预防下次再次出现此问题。解决方法如下:1、git输入命... 阅读详情

相关推荐

fatal: Could not read from remote repository. Please make sure you have the correct access rights

使用git clone命令从github上同步github上的代码库时,如果使用SSH链接,系统会报下面的错误:Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository...

5万+

git 上传文件失败:Permission denied (publickey). Could not read from remote repository. Please make sure

1、问题 git@github.com: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 含义:git@github.com:权限被拒绝(公钥)。无法从远程存储库中读取。请确保您具有正确的访问权限,并且该存储库已存在。 2、分析 之前在push上传.

yun_huangZJ的博客 5924

Jetson Nano官方镜像下载&烧录

在NVIDIA Jetson Nano开发者套件上安装NVIDIA官方Ubuntu镜像

weixin_44222088的博客 8846

解决 “fatal: Could not read from remote repository.“

在使用Git进行本地仓库与远程仓库同步的时候,可能会出现“fatal: Could not read from remote repository.”错误,本文主要针对该问题进行详细分析

I'm George 的博客 28万+

从SC7A20数据手册到代码:一步步搞定加速度值读取与换算(避坑指南)

本文详细解析了SC7A20三轴加速度传感器的数据手册,从寄存器配置到原始数据读取,再到加速度值的换算方法。通过代码示例和避坑指南,帮助开发者准确实现加速度值的读取与换算,适用于嵌入式开发和运动检测应用。

weixin_26878995的博客 586

【清华大学软院】15-19年推免试题历年整理

整理的题目为清软预推免机试(外校)硕士机考题目。 年代 题目1 题目2 题目3 2019 质因数分解 二叉搜索树 区间DP(折叠字符串) 2018 日期转换 高精度模拟 区间DP(戳气球) 2017 进制素数 被遗漏的数字 DP(收集苹果) 2016 大数运算 DP DFS 2015 进制素数: http://acm.hdu.edu.cn/showproblem.php?pid=1230 2017年题目(这个是找的最准确的题目): 1题见【链接】 2题见【链接】

云端筑梦师 2255

使用git时出现Could not read from remote repository.Please make sure you have the correct access rights

今天想在Vscode中访问一个 gitee 地址,想当然的就把地址复制过来,然后克隆里面的代码,但是出现 git@gitee.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.的错误,因为本人对 git 不太熟练,所以去找了找......

老胡的博客 2万+

DNF单机版搭建全攻略:从零开始到局域网联机(含常见问题解决)

本文提供详细的DNF单机版搭建指南,从环境配置到局域网联机设置,涵盖服务端安装、数据库配置及常见问题解决方案。适合新手和有经验的玩家,帮助快速搭建专属游戏服务器,重温经典游戏体验。

weixin_30832143的博客 847

git报错: Could not read from remote repository.Please make sure you have the correct access rights

git报错: Could not read from remote repository.Please make sure you have the correct access rights

m0_37759590的博客 6044

RK3568平台开发系列讲解(UBOOT篇)u-boot启动流程

U-Boot(Universal Bootloader)是一种开源的引导加载程序,广泛用于嵌入式系统中。它的主要功能是初始化硬件设备,加载操作系统内核,并将控制权交给操作系统。U-Boot的启动流程可以分为多个阶段,以下是典型的U-Boot启动流程:

内核笔记 1233

ARFoundation系列讲解-教程目录

一、教程目录 ARFoundation快速入门-01简介 ARFoundation快速入门-02环境搭建 ARFoundation快速入门-03环境配置之iOS ARFoundation快速入门-04环境配置之Android ARFoundation快速入门-05ARKit设备支持列表 ARFoundation快速入门-06ARCore设备支持列表 ARFoundation快速入门-07检查设备支持 ARFoundation快速入门-08平面检..........

a451319296的博客 3万+

【已解决】git clone 报错:Could not read from remote repository. Please make sure you have the correct acce

但是现在本地这个 SSH Key 在其他地方有使用(Gitee/Github/…),想要保留,再生成一个。当本地存在多个密钥,如果不设置认证规则,本机将随机选择一个密钥用于认证,可能造成认证失败。决定尝试 ED25519 算法生成的密钥(同一算法需要指定不同路径,使用不同算法就免了)按照默认路径生成后,配置config文件(~/.ssh/config)按照官方的提示,大概率是原因1,只能重新生成了。接下来复制公钥粘贴到指定位置。签名一共经过三个环节。

程序边界 8065

嵌入式开发工程师笔试面试指南-Linux驱动

linux驱动

weixin_43491077的博客 473

解决git@github.com:Permission denied (publickey). Could not read from remote repository. Please make s

这个错误通常表示没有正确的权限来访问该 Git 仓库。

学无止境 1万+

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案

我们在使用git clone 的时候,有时候会遇到这类问题: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. atal: Could not read from

Damon_hmz 11万+

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

git错误:fatal: Could not read from remote repository.解决

出现上述错误的原因是:运维将公司一台机子上的git私有仓库迁移至另一台机子上了,导致之前对原先的机子上的代码提交失效,没有权限。3、输入命令【git remote set-url origin 新地址】替换成新地址。1、进入项目文件夹,右键鼠标,点击【Git Bash Here】2、输入命令【git remote -v】查看git远程仓库地址。4、输入命令【git remote -v 】查看是否更新成功。git remote set-url origin 新地址。方法一:通过git命令修改。

weixin_40293999的博客 2万+

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

Could not read from remote repository.

错误Could not read from remote repository.Please make sure you have the correct access rights and the repository exists,解决方案: 1、执行命令open ~/.ssh,查看是否包含id_rsa.pub文件。 2、存在id_rsa.pub文件跳到第三步,不存在id_rsa.pub...

蜗牛 9268

fatal: Could not read from remote repository.的解决办法

查看远端地址 git remote –v 查看配置 git config --list git status git add . // 暂存所有的更改 git checkout . // 丢弃所有的更改 git status // 查看文件状态 git commit -m “本次要提交的概要信息” // 提交 设置远端仓库地址 git remote set-url origin 你的远端地...

保持饥渴、好奇 6万+

IDEA Git 报错could not read from remote repository

3 最后删除known_hosts,请执行 ssh -T git@xxxxx,把你的gitlab加入到known_hosts。1 检查idea工程project目录下的.git文件夹下的.config文件,origin配置是否正确。打开.config文件,url有两种方式:https的方式、ssh的方式,2 如果正确,请配置ssh 密钥,网上随便搜索一大堆,首先再git后台,检查是否有对应工程的权限。

hankthon的博客 3910

fatal: Could not read from remote repository. 解决方法

Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists。

weixin_52648900的博客 9390

Git解决fatal: Could not read from remote repository.的问题

Git解决fatal: Could not read from remote repository.的问题 一、问题 当使用Git Bash时,执行命令git pull或者git push的时候出现如下问题: 二、解决 1. 第一种原因: 因为git仓库的用户信息和本地的用户信息不匹配造成的,解决方法也很简单,在git仓库中删除当前用户配置的key后重新生成并配置即可; 执行ssh-keygen –t rsa –C "git仓库邮箱",重新生成密钥; 执行git config --glob

BreenCL的博客 12万+

解决:从idea提交项目时出现Could not read from remote repository.Please make sure you have the correct access r

4、打开git,先找到设置,然后点击公钥这个界面,将刚才复制的公钥粘贴到相应的位置保存即可。3、关闭这个界面,在该文件夹下找到.ssh文件,点进去,用记事本打开如下文件,复制公钥。1、打开c盘中用户目录,右击进入git bash here。2、输入如下命令,中间如果暂停一直按回车,直到结束。:之前在使用git时开了私钥,当使用公钥时不匹配。

qq_45900832的博客 1705

解决 “fatal: Could not read from remote repository.

为本地git生成秘钥,并将公钥上传至代码托管平台

m0_69057918的博客 1万+
上一篇: [iOS]自动生成ipa脚本
下一篇: iOS内购审核被拒 错误状态码21007
wf_breeze
博客等级 码龄11年 2粉丝 29原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值