繁体   English   中英

403在访问github仓库时被禁止

[英]403 Forbidden while accessing github repo

我已经使用以下命令生成了一个ssh密钥

ssh-keygen -t rsa -C "your_email@example.com"

我还已将ssh密钥添加到我的github设置中。

但是,当我尝试克隆时,出现此错误信息

Initialized empty Git repository in /home/somepath/.git/
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/somelink.git/info/refs

fatal: HTTP request failed

同样可以从另一台笔记本电脑上使用

您不能使用使用https url的ssh密钥对github进行身份验证。 您需要使用ssh: url (文档)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM