2017-09-13 147 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