2013-02-04 53 views
1

我想克隆一些東西,但我得到一個權限錯誤,我已經安裝git rails安裝程序here所以不知道該怎麼做。複製輔助文件

Anderss-MacBook-Pro:tmp anderskitson$ sudo git clone [email protected]:mhartl/rails_tutorial_sublime_text.git 
Cloning into rails_tutorial_sublime_text... 
The authenticity of host 'github.com (207.97.227.239)' can't be established. 
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 
Are you sure you want to continue connecting (yes/no)? yes 
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts. 
Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 
Anderss-MacBook-Pro:tmp anderskitson$ 

運行時,我也得到這個輸出的ssh-SSH添加

Anderss-MacBook-Pro:.ssh anderskitson$ ls 
known_hosts 
Anderss-MacBook-Pro:.ssh anderskitson$ 
+0

'〜/ .ssh'的內容? – adamdunson

+0

@adamdunson我添加了.ssh內容 –

回答

1

的-l

Anderss-MacBook-Pro:Packages anderskitson$ ssh-add -l 
The agent has no identities. 

內容本指南將幫助您:https://help.github.com/articles/generating-ssh-keys

您需要生成SSH私鑰/公鑰組合,並在嘗試克隆之前將其添加到github。

+0

非常感謝,非常完美。 –