0

我使用以下内容生成了一个 ssh 密钥

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

我还在我的 github 设置中添加了 ssh 密钥。

但是,当我尝试克隆时,我收到此错误消息

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

不过,在另一台笔记本电脑上也可以使用

4

1 回答 1

0

您无法使用httpsurl 使用 ssh 密钥向 github 进行身份验证。您需要使用ssh:url (docs)

于 2015-09-23T20:10:19.427 回答