【问题标题】:Git Clone Repo to Ubuntu Server Key ErrorGit Clone Repo 到 Ubuntu 服务器密钥错误
【发布时间】:2018-12-10 00:49:03
【问题描述】:

我正在尝试将我的远程 github 存储库克隆到我的 EC2 Ubuntu 服务器。当我运行sudo git clone git@github.com:user/test.git

我有消息

Cloning into 'test'...

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

Please make sure you have the correct access rights
and the repository exists.

我需要设置什么才能在我的服务器中获取我的 github 存储库?我需要将密钥添加到我的 Github 帐户吗?我的服务器?

【问题讨论】:

    标签: ubuntu github ssh-keys


    【解决方案1】:

    GitHub 无法对您进行身份验证。您的 SSH 密钥未经授权。我建议您查看以下链接,因为该主题已被处理:

    Link 1 Subject: GitHub Error Message - Permission denied (publickey)
    Link 2 Subject: Permission denied (publickey)

    希望这有帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-03-18
      • 2014-04-04
      • 2015-08-31
      • 1970-01-01
      • 2018-08-29
      • 1970-01-01
      • 2021-05-13
      相关资源
      最近更新 更多