【发布时间】:2019-12-10 21:52:44
【问题描述】:
我需要通过 SSH 将 GIT 存储库克隆到远程服务器。我尝试过以传统方式执行此操作,使用
git clone git@github.xyz.com:username/repository.git
上面给了我
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
1)repo 存在,我创建了 repo 用于测试目的 2)它是一个公共回购。
【问题讨论】:
-
如果它是一个公共仓库,为什么要隐藏它的 URL?
-
听起来您可能需要将 SSH 密钥添加到 github.com/settings/ssh
-
听起来很可能是 SSH 密钥问题。以防万一,请确保您可以从远程服务器访问 github。在这里,他们设法解决了一些非常相似的问题:stackoverflow.com/questions/30068298/…
标签: git github git-clone git-repo