CLI消息 - 尝试克隆存储库

时间:2017-09-13 04:27:52

标签: git command-line-interface git-clone

我试图将回购克隆到我的工作计算机,以便我可以处理反应教程,当我说回购的git clone地址时,我得到以下消息:

Cloning into 'ReduxSimpleStarter'...
Warning: Permanently added the RSA host key for IP address '145.40.335.302' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

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

有人可以解释这些线的含义吗?

1 个答案:

答案 0 :(得分:1)

这意味着您正在使用ssh网址,并且您的公钥(在~/.ssh/id_rsa.pub中)未在远程服务器~/.ssh/authorized_keys中注册。

如果这是私人服务器,请与管理员核实,以便添加密钥。

你可以用以下方法测试:

ssh -Tv <user>@my.server