{"id":1594,"date":"2015-09-26T03:24:25","date_gmt":"2015-09-25T19:24:25","guid":{"rendered":"\/wp\/?p=1594"},"modified":"2015-09-26T03:24:25","modified_gmt":"2015-09-25T19:24:25","slug":"%e8%a7%a3%e5%86%b3eclipse%e4%bd%bf%e7%94%a8git-ssh%e6%a8%a1%e5%bc%8fauth-fail%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/tixbay.net\/?p=1594","title":{"rendered":"\u89e3\u51b3eclipse\u4f7f\u7528git ssh\u6a21\u5f0fauth fail\u95ee\u9898"},"content":{"rendered":"<p>\u547d\u4ee4\u884c\u4e0bgit\u4e00\u5207\u6b63\u5e38\uff0ceclipse\u51fa\u73b0auth fail\u9519\u8bef\uff0c<br \/>\n\u9700\u8981\u6dfb\u52a0 GIT_SSH=\/usr\/bin\/ssh<\/p>\n<p>\u539f\u6587\uff1a<\/p>\n<p>I had exactly same problem but I found the cure from a Eclipse bug report!<\/p>\n<p>An environment variable named GIT_SSH must be set with a path to a ssh executable [1].<\/p>\n<p>For example on Ubuntu Linux (10.10 64bit):<\/p>\n<p>> export GIT_SSH=\/usr\/bin\/ssh<br \/>\n> eclipse<br \/>\nAfter that pushes to GitHub repository work like they should. I tested this with Eclipse Galileo and Indigo.<\/p>\n<p>The problem is really annoying and the solution is far from nice. For now, making the solution permanent for, at least Ubuntu users, one must make the env variable permanent. It can be done by adding the export command to ~\/.profile or ~\/.bashrc [2]. For example:<\/p>\n<p>> cd ~<br \/>\n> echo &#8220;export GIT_SSH=\/usr\/bin\/ssh&#8221; >> .profile<br \/>\nAnd then restart Eclipse to take effect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u547d\u4ee4\u884c\u4e0bgit\u4e00\u5207\u6b63\u5e38\uff0ceclipse\u51fa\u73b0auth fail\u9519\u8bef\uff0c \u9700\u8981\u6dfb\u52a0 G &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/tixbay.net\/?p=1594\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1594","post","type-post","status-publish","format-standard","hentry","category-moo"],"_links":{"self":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/1594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1594"}],"version-history":[{"count":1,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/1594\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/1594\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}