[問題] 無法git clone

看板Linux作者 (Arim5566)時間13年前 (2012/05/06 00:52), 編輯推噓2(205)
留言7則, 4人參與, 最新討論串1/1
各位版友好 我目前是透過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

05/06 00:55, , 1F
Permission denied (publickey).
05/06 00:55, 1F
我剛剛試了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)

05/06 01:27, , 2F
你要把遠端主機的public key上傳到你的github帳號設定裡
05/06 01:27, 2F

05/06 01:28, , 3F

05/06 01:55, , 4F
http 協定那個是唯讀(read only
05/06 01:55, 4F

05/06 01:55, , 5F
如果是你自己的 repo,你要把 rsa 的 public key 加到
05/06 01:55, 5F

05/06 01:55, , 6F
github 裏面,這樣才能用 git 協定
05/06 01:55, 6F

05/06 14:38, , 7F
thx:)
05/06 14:38, 7F
文章代碼(AID): #1FfLgynC (Linux)