{"id":3115,"date":"2012-09-25T23:38:47","date_gmt":"2012-09-25T18:08:47","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=3115"},"modified":"2012-09-25T23:38:47","modified_gmt":"2012-09-25T18:08:47","slug":"authenticate-git-using-ssh-protocol-with-eclipse-and-egit-salesforce","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/authenticate-git-using-ssh-protocol-with-eclipse-and-egit-salesforce\/","title":{"rendered":"Authenticate Git using SSH protocol with Eclipse and Egit &#8211; Salesforce"},"content":{"rendered":"<p style=\"text-align: justify;\"><a title=\"Salesforce Eclipse Git Tutorial\" href=\"https:\/\/jitendrazaa.com\/blog\/salesforce\/salesforce-git-eclipse-egit-better-and-distributed-source-control\/\">In Previous article<\/a>, i have explained step by step approach to configure Git for Salesforce using Eclipse and Egit plugin. However, i have explained the &#8220;https&#8221; method to connect Git directly. There are several repositories which does not support the &#8220;https&#8221; protocol and prefer &#8220;SSH&#8221; (Secure Shell) protocol.<\/p>\n<p style=\"text-align: justify;\">So, in this article i will extend the previous one by showing how to connect git using &#8220;SSH&#8221; protocol. In this article i am referring <a title=\"Free Git and SVN repository\" href=\"http:\/\/Unfuddle.com\" rel=\"nofollow\">Unfuddle.com<\/a><\/p>\n<p style=\"text-align: justify;\">We will need to generate the private key (RSA) which will be unique and locked with the help of secret passphrase.<\/p>\n<p style=\"text-align: justify;\">In Eclipse, Navigate to &#8220;Windows | Preferences | General | Network Connections | SSH2&#8243;\u009d.<\/p>\n<figure id=\"attachment_3117\" aria-describedby=\"caption-attachment-3117\" style=\"width: 569px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/09\/Generate-SSH-RSA-Key-using-Eclipse.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\" wp-image-3117 \" title=\"Generate SSH RSA Key using Eclipse\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/09\/Generate-SSH-RSA-Key-using-Eclipse.png?resize=569%2C486&#038;ssl=1\" alt=\"Configure Push for SSH Authentication in Git\" width=\"569\" height=\"486\" \/><\/a><figcaption id=\"caption-attachment-3117\" class=\"wp-caption-text\">Configure Push for SSH Authentication in Git<\/figcaption><\/figure>\n<p>Click on button &#8220;Generate RSA Key&#8221;\u009d and after that provide secret Passphrase (dont forget this passphrase), now save the &#8220;private key&#8221;\u009d, if possible in &#8220;.ssh&#8221;\u009d folder which is located at &#8220;C:UsersUseName.ssh&#8221;\u009d.<\/p>\n<p style=\"text-align: justify;\"><!--more-->For SSH login, let&#8217;s take example of &#8220;Unfuddle&#8221;\u009d, where we need to connect to Git using SSH protocol.<\/p>\n<p style=\"text-align: justify;\">In Unfuddle, navigate to &#8220;Personal Setting&#8221;\u009d and at the bottom of page you will find option to add &#8220;public Keys&#8221;\u009d. Copy the key generated in above screen and paste it in Unfuddle personal Setting.<\/p>\n<p style=\"text-align: justify;\">Follow all steps of setting up Git as per <a title=\"Integrate Salesforce, Git using Eclipse and EGit\" href=\"https:\/\/jitendrazaa.com\/blog\/salesforce\/salesforce-git-eclipse-egit-better-and-distributed-source-control\/\">previous article<\/a>.<\/p>\n<p style=\"text-align: justify;\">The only change we need to configure is while setting up Push or fetch URLs.<\/p>\n<figure id=\"attachment_3116\" aria-describedby=\"caption-attachment-3116\" style=\"width: 558px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/09\/Configure-Push-for-SSH-Authentication-in-Git.png?ssl=1\" rel=\"nofollow\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3116\" title=\"Configure Push for SSH Authentication in Git\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/09\/Configure-Push-for-SSH-Authentication-in-Git.png?resize=558%2C525&#038;ssl=1\" alt=\"Configure Push for SSH Authentication in Git\" width=\"558\" height=\"525\" \/><\/a><figcaption id=\"caption-attachment-3116\" class=\"wp-caption-text\">Configure Push for SSH Authentication in Git<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">As you can see in above image, we have used the protocol &#8220;SSH&#8221;\u009d instead of &#8220;https&#8221;\u009d as compared to our last article.<\/p>\n<p style=\"text-align: justify;\">I hope, it will help many users to set up Git for Salesforce using eclipse in case they need &#8220;SSH&#8221;\u009d authentication.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Previous article, i have explained step by step approach to configure Git for Salesforce using Eclipse and Egit plugin. However, i have explained the &#8220;https&#8221; method to connect Git directly. There are several repositories which does not support the &#8220;https&#8221; protocol and prefer &#8220;SSH&#8221; (Secure Shell) protocol. So, in this article i will extend [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[86,88,108],"class_list":["post-3115","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-eclipse","tag-egit","tag-git"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3086,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-git-eclipse-egit-better-and-distributed-source-control\/","url_meta":{"origin":3115,"position":0},"title":"Salesforce + Git + Eclipse + EGIT = Better and Distributed Source Control","author":"Jitendra","date":"September 16, 2012","format":false,"excerpt":"During my J2EE and .Net days, I was much dependent on the subversion repository. I had never thought my code without SVN. When I moved to Salesforce few years back, the first thing I missed is code repository to have better source code control. As svn creates either \".svn\"\u009d or\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Architecture of GIT","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/09\/Architecture-of-GIT.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3231,"url":"https:\/\/www.jitendrazaa.com\/blog\/java\/creating-first-application-in-heroku-using-eclipse\/","url_meta":{"origin":3115,"position":1},"title":"Creating First Application in Heroku using Eclipse","author":"Jitendra","date":"March 3, 2013","format":false,"excerpt":"Hello Readers, in this article we will see step by step procedure to deploy your first (Hello World) program in Heroku. There are two ways, first going through series of Commands of \"Heroku\" and \"GIT\" and other simple and smart way is to use Eclipse Capability with Heroku. To make\u2026","rel":"","context":"In &quot;JAVA&quot;","block_context":{"text":"JAVA","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/java\/"},"img":{"alt_text":"Setting up Credentials for Heroku in Eclipse","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/03\/Setting-up-Credentials-for-Heroku-in-Eclipse.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/03\/Setting-up-Credentials-for-Heroku-in-Eclipse.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/03\/Setting-up-Credentials-for-Heroku-in-Eclipse.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3448,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/using-git-with-force-com-ide-video-tutorial\/","url_meta":{"origin":3115,"position":2},"title":"Using GIT with Force.com IDE &#8211; Video Tutorial","author":"Jitendra","date":"September 23, 2013","format":false,"excerpt":"In this article, we discussed how to use GIT with Eclipse. I have created Video Tutorial for same which includes How to Upgrade Eclipse from Helios to Indigo Install EGIT Plugin Introduction to Bit Bucket","rel":"","context":"In &quot;Force.com&quot;","block_context":{"text":"Force.com","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/force-com\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3937,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/heroku\/create-node-js-application-using-eclipse-and-deploy-to-heroku-video-tutorial\/","url_meta":{"origin":3115,"position":3},"title":"Create Node.js Application using Eclipse and deploy to Heroku &#8211; Video Tutorial","author":"Jitendra","date":"July 27, 2014","format":false,"excerpt":"In Below video, I have explained how to create basic Node.js application in Eclipse with help of Egit and Heroku plugin and deploy to Heroku. Please read below two articles, to get familiar of Plugins and how to setup : Salesforce + Git + Eclipse + EGIT = Better and\u2026","rel":"","context":"In &quot;Heroku&quot;","block_context":{"text":"Heroku","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/heroku\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3902,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/automated-daily-backup-using-ant-migration-tool-and-git\/","url_meta":{"origin":3115,"position":4},"title":"Automated Daily Backup of Salesforce Using ANT Migration Tool and GIT","author":"Jitendra","date":"July 5, 2014","format":false,"excerpt":"In few\u00a0previous articles, I have talked about how to use \"ANT Migration tool in Salesforce\" and \"How to Use EGit plugin in Eclipse to work with Git\". So to make this article short, I assume that you are already familiar with ANT Migration tool provided by Salesforce and Git. During\u2026","rel":"","context":"In &quot;Configuration&quot;","block_context":{"text":"Configuration","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/configuration\/"},"img":{"alt_text":"Salesforce Automated Script for Data Backup Using CommandLine","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/07\/Salesforce-Automated-Script-for-Data-Backup-Using-CommandLine.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/07\/Salesforce-Automated-Script-for-Data-Backup-Using-CommandLine.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/07\/Salesforce-Automated-Script-for-Data-Backup-Using-CommandLine.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3930,"url":"https:\/\/www.jitendrazaa.com\/blog\/others\/tips\/resolve-error-eclipse-ssh-key-is-not-matching-the-ssh-keys-that-is-associated-with-your-heroku-account\/","url_meta":{"origin":3115,"position":5},"title":"Resolve Error : Eclipse SSH key is not matching the SSH key(s) that is associated with your Heroku account","author":"Jitendra","date":"July 27, 2014","format":false,"excerpt":"We have seen that how to create First Heroku application using Eclipse.\u00a0However it is possible that after following all steps properly in above article you may receive error saying the Eclipse SSH key is not matching the SSH key(s) that is associated with your Heroku account. To fix this error,\u2026","rel":"","context":"In &quot;Tech Tips&quot;","block_context":{"text":"Tech Tips","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/others\/tips\/"},"img":{"alt_text":"Clone Git from Heroku","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/07\/Clone-Git-from-Heroku.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/07\/Clone-Git-from-Heroku.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/07\/Clone-Git-from-Heroku.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/3115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=3115"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/3115\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=3115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=3115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=3115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}