git clone之报错[email protected]: Permission denied (publickey).fatal: Could not read from remote repositor

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.

在载资源的时候,出现下面的错误
在这里插入图片描述

因为没有正确设置公私钥,导致没有权限操作。

解决办法

1、先查看一下自己有没有生成过public key
cat ~/.ssh/id_rsa.pub 

如果有的话是以ssh-rsa 开头,以账号的注册邮箱结尾的
在这里插入图片描述
我这里是有的,但是为什么报错呢,因为是不同的邮箱,也就是两个账号,这里可以自己找找之前的文件,打开看看是否是当前账号所绑定的邮箱
这里没有当前用的账号的邮箱的public key,所以得重新生成

2、生成公私钥
ssh-keygen -t rsa -C “xxxxx@xxxxx.com”

这里的xxxxx@xxxxx.com是你自己的账号邮箱
在这里插入图片描述
然后使用记事本打开.puh文件,Ctrl+A全选,Ctrl+C复制所有的内容
在这里插入图片描述

3、将public key添加到码云

打开自己的Gitee的设置–>ssh公钥
https://gitee.com/profile/sshkeys
将上一步复制的内容完整的粘贴入框中,并自己起个名字
在这里插入图片描述
在这里插入图片描述

4、可以自己验证一下是否成功
ssh -T git@gitee.com
5、然后就可以继续clone

就成功了
在这里插入图片描述

  • 6
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
回答: 根据提供的引用信息,这个误是在运行一个叫做“webui-user.bat”的文件时出现的。误提示表明程序试图安装名为“open_clip”的包,但是安装失败了。具体的误信息如下:Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ error: RPC failed; curl 18 HTTP/2 stream 3 was not closed cleanly before end of the underlying stream fatal: expected flush after ref listing error: subprocess-exited-with-error git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ did not run successfully. exit code: 128 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [1] 同时,在引用中提到了一种可能的解决方法。您可以先输入 cd ~/.ssh 查询.ssh文件,如果找不到的话就直接创建一个,输入 mkdir ~/.ssh,然后设置账号和邮箱,输入git config --global user.name '账号名' 和 git config --global user.email '邮箱',接着输入 ssh-keygen -t rsa -C '邮箱' 生成公钥。提到了在执行git clone https://github.com/Stability-AI/stablediffusion.git命令时无法下载Stable-Diffusion-Stability-AI库的问题。这个误是由于PyPI的问题导致的,可能与pip无关。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [【Stable Diffusion】安装过程中常见解决方法](https://blog.csdn.net/Bankcary/article/details/131237002)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* [githubgit@github.com: Permission denied (publickey).fatal: Could not read from remote repository](https://blog.csdn.net/waitle500/article/details/122960022)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值