2017-09-13 177 views
0

我试图克隆回购到我的工作计算机,以便我可以在反应教程上工作,当我说回购的git克隆地址时,我收到以下消息:CLI消息 - 试图克隆回购

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

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

如果这是一个私人服务器,请与其管理员联系,以便添加您的密钥。

您可以测试与:

ssh -Tv <user>@my.server 
+0

你能告诉我多一点的是如何工作的以及它是如何设置的? –

+0

这是我输入命令时得到的结果:OpenSSH_9.4p1,LibreSSL 2.5.0 debug1:读取配置数据/ etc/ssh/ssh_config ssh:无法解析主机名my.server:nodename,也没有提供servname,或不知道。我如何检查我的服务器名称? –

+0

@IvonneTerrero是否用您的实际服务器替换了'my.server'?服务器github.com? – VonC