2010-08-30 61 views
3

我是git的新手。我可以安裝我的git倉庫,並在幾天前開始使用它。 (我使用Github上) 現在我希望能夠從我的其他電腦犯,所以我設置的git,嘗試git的克隆[email protected] 但我得到了致力於第二臺機器的git repo [Github]

The authenticity of host 'github.com (207.97.___.___)' can't be established. 
RSA key fingerprint is 16:27... 
Are you sure you want to continue connecting (yes/no)? yes 

Warning: Permanently added 'github.com,207.97.___.___' (RSA) to the list of known hosts. 
Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

我需要證書還是什麼?在那種情況下,我該怎麼做?

在此先感謝

伊格納西奧

UPDATE: 對不起,我忘了說,我是在Mac OS X

+0

如果你讓我們知道您正在使用的操作系統,這將是一個很大的幫助! – Johnsyweb 2010-08-30 04:48:03

+0

這個問題已經回答了,但我發現這個問題也很有用:http://stackoverflow.com/questions/3164745/git-how-do-i-set-up-ssh-keys-to-access-my-remote-存儲庫從-A-第二COMPUT – nacho4d 2011-01-08 20:42:30

回答

2

您需要提供您的SSH客戶端(第二臺機器上)與私鑰匹配的公鑰你進入這裏:

https://github.com/account#ssh_bucket

如果您在OS X(或Linux或類似的)上使用OpenSSH很可能是${HOME}/.ssh/id_rsa,它可以簡單地從第一臺機器複製到第二臺機器。