作者Arim (Arim5566)
看板Linux
標題[問題] 無法git clone
時間Sun May 6 00:52:05 2012
各位版友好
我目前是透過ssh登入遠端主機
目前是想要git clone我的vimrc
但是出現以下的訊息
Cloning into 'vimrc'...
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' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
請問我應該怎麼解決這個問題?
謝謝各位版友的指教
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.63.98.165
→ danielsig727:Permission denied (publickey). 05/06 00:55
我剛剛試了http協定
git clone
https://github.com/user/vimrc.git
是可以work
不過還是不清楚為什麼一般的git clone git@github.com:user/vimrc.git 沒辦法work
※ 編輯: Arim 來自: 61.63.98.165 (05/06 01:02)
推 carlcarl:你要把遠端主機的public key上傳到你的github帳號設定裡 05/06 01:27
推 kusoayan:http 協定那個是唯讀(read only 05/06 01:55
→ kusoayan:如果是你自己的 repo,你要把 rsa 的 public key 加到 05/06 01:55
→ kusoayan:github 裏面,這樣才能用 git 協定 05/06 01:55
→ Arim:thx:) 05/06 14:38