【发布时间】:2015-08-22 05:11:17
【问题描述】:
我在服务器和 git 远程存储库上有一个项目。服务器和存储库有 ssh 对(如果我在服务器上,我可以通过 ssh 从远程 git 存储库克隆任何项目)。我想将项目从存储库克隆到我的本地机器,所以我通过 scm .ssh/ 文件夹从服务器复制并将它放在我的 /home/ 文件夹中。
但是,当我尝试将项目从 repo 克隆到本地机器时,git 返回错误:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我做错了什么?
【问题讨论】: