【问题标题】:403 Forbidden while accessing github repo403 访问 github repo 时被禁止
【发布时间】:2015-09-23 19:34:25
【问题描述】:

我已经使用以下方法生成了一个 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

同样的工作在另一台笔记本电脑上

【问题讨论】:

  • fatal: HTTP request failed你确定你从github复制了SSH url吗?

标签: github ssh ssh-keygen


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-04
    • 2012-06-02
    • 2017-06-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多