1. 程式人生 > >eclipse使用ssh加密方式上傳到github常見錯誤

eclipse使用ssh加密方式上傳到github常見錯誤

最近學了一下github,遇到了很多問題,總結一下,希望對大家有所幫助!

github連接出現Bad file number問題時:

下面這種情況就說明可以使用ssh連線github了

但在eclipse中卻會出現下面的錯誤

解決方式如下:

In theory it's nothing bad, you press the "Yes" button and you're done.

But to my surprise there was no "Yes" button :-) Only "OK" and "Details", both of them didn't result in the code being pushed to the sf.net. Restart (as suggested on some sites) didn't help.

  1. In Eclipse switch to "Git Repositories" perspective
  2. Expand your project, add new Remote repository (I called it "sourceforge")
  3. Paste the URI that sourceforge provides on your project website and the proper password (yes, this time it will work)
  4. Now Eclipse will ask you if you trust the RSA key fingerprint and will add it to known_hosts
    file
  5. "Dry-Run" (should work), "Save"