git克隆报错:Permission denied (publickey).fatal: Could not read from remote repository解决办法

这篇具有很好参考价值的文章主要介绍了git克隆报错:Permission denied (publickey).fatal: Could not read from remote repository解决办法。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

git克隆报错:

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


1、问题解决首先参考文章

例如:缺少公钥解决办法

2、生成公钥报错

ssh-keygen -t rsa -C ‘邮箱’ 生成公钥时,报错如下:

Saving key "C:\\Users\\ASUS\\.ssh\033[D\033[D\033[D\033[D\033[D\033[D\033[D\
解决办法:

需要换到C盘的C:\Users\ASUS.ssh目录下,再右键Git Bash Here
输入命令:ssh-keygen -t rsa -C 'xxx@123.com'


3、此时以为可以克隆项目的时候又报错:

git@github.com: Permission denied (publickey)

文章提到需要用命令ssh-add ~/.ssh/id_ras添加公钥


4、执行添加公钥命令ssh-add ~/.ssh/id_ras'又报错

Could not open a connection to your authentication agent

参考文章:命令报错解决办法

执行如下命令 ssh-agent bash
然后再执行 ssh-add ~/.ssh/id_ras 成功添加公钥。

Identity added: /c/Users/ASUS/.ssh/id_rsa (xxx@123.com)

git@gitlab.qiyi.domain: permission denied (publickey). fatal: could not read,git,github,ssh文章来源地址https://www.toymoban.com/news/detail-767415.html

到了这里,关于git克隆报错:Permission denied (publickey).fatal: Could not read from remote repository解决办法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Git push异常:Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) fatal: Could not read

    在使用新的gitlab仓库迁移旧代码时,当push代码,报了如下异常: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) .fatal: Could not read remote repository. 在git bash下 1.先清楚本地旧的账号密码: git config --global --unset credential.helper 2.重新设置用户名称和邮箱 git config --global user.nam

    2024年03月17日
    浏览(50)
  • Permission denied (publickey). fatal: Could not read from remote repository.

    将本地代码推送到远程分支报错:Permission denied (publickey). fatal: Could not read from remote repository. 确保已经添加了正确的 SSH 密钥。可以使用以下命令检查 SSH 密钥是否已经添加: 如果看到消息 “Hi [username]! You\\\'ve successfully authenticated, but GitHub does not provide shell access.” ,则表示已成

    2023年04月18日
    浏览(32)
  • git clone 报错fatal: could not create work tree dir ‘xxx’: Permission denied

    新的电脑进行环境配置,下载git,今天去GitHub拉取新的项目就出现上面的错误,进行一个记录。 当时我是执行命令git克隆出现以下报错截图    最开始我将错误截图进行搜索,错误原因大概是:“The error message you received, \\\"fatal: could not create work tree dir \\\'RoyalSecurity\\\': Permission de

    2024年02月07日
    浏览(55)
  • git 报错:git@github.com: Permission denied (publickey).fatal: 无法读取远程仓库。

    起因: 我输入git push -u origin master 想要push到github 显示 git@github.com: Permission denied (publickey). fatal: 无法读取远程仓库。 请确认您有正确的访问权限并且仓库存在。 那么我们 第一步: 检查SSH密钥配置不正确: 确保你的本地计算机上配置了正确的 SSH 密钥。你可以通过以下步骤检

    2024年02月04日
    浏览(52)
  • 解决git@github.com: Permission denied (publickey). Could not read from remote repository

    原因分析 Permission denied (publickey) 没有权限的publickey ,出现这错误一般是以下两种原因 客户端与服务端未生成 ssh key 客户端与服务端的ssh key不匹配 找到问题的原因了,解决办法也就有了,重新生成一次ssh key ,服务端也重新配置一次即可。 客户端生成ssh key 470812087@qq.com改为

    2024年02月04日
    浏览(56)
  • 解决git@github.com:Permission denied (publickey). Could not read from remote repository. Please make s

    这个错误通常表示没有正确的权限来访问该 Git 仓库。 为了解决GitHub上的权限问题,需要执行以下步骤: 打开命令行终端(例如Git Bash)并输入以下命令: 将公钥添加到GitHub帐户中, 执行以下步骤: 在“Title”字段中为新密钥提供一个描述性标题。 将“Key”字段中的公钥粘

    2024年02月06日
    浏览(42)
  • 解决在linux上git clone 时报错 git@gitee.com: Permission denied (publickey). Could not read from remote repo

    今天在gitee上看到一个比较感兴趣的项目,于是就想下载下来研究研究,结果git clone 克隆的时候报错了,报错如下: 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. Permission denied (publickey) 没有权

    2024年02月11日
    浏览(46)
  • git@github.com: Permission denied (publickey). fatal: 无法读取远程仓库。

    执行git clone 命令失败,提示拒绝访问。具体解决办法如下。 (1)生成密钥,输入以下命令,一路回车即可,会生成ssh key。保存在.ssh目录下。 (2)打开刚刚生成的id_rsa.pub,将里面的内容复制,进入github,在settings下,SSH and GPG keys下new SSH key,title随便取一个名字,然后将id_rsa.p

    2024年02月11日
    浏览(45)
  • Git报错:git@github.com: Permission denied (publickey)

    输入指令 ssh -T git@github.com 测试SSH链接,出现如下报错: git@github.com: Permission denied (publickey,password,keyboard-interactive). git@github.com: Permission denied (publickey). git@github.com\\\'s password: ,但是即是你输入的是正确的密码,依旧提示 Permission denied, please try again. 。 在网上搜索相关解决方案,

    2024年02月02日
    浏览(50)
  • win10下解决git报错 Permission denied(publickey)

    今天在csdn的GitCode新建了一个项目,然后在windows下git clone时出现错误 git@gitcode.net: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 完整报错如下图 直接说结论 因为没有把电脑的SSH public key添加到项目的gi

    2024年02月11日
    浏览(49)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包