Eclipse git and ssh-agent

I use eclipse with git (egit).

I would like to make use of my ssh-agent so I can push from eclipse. Does anybody know how to set up egit to use ssh-agent?

  • Integrating Eclipse and GitHub
  • Eclipse error when using Subversive
  • Eclipse svn ignore bin
  • Git review systems
  • Practical way to commit changes in source control to multiple branches
  • Import Java project from GitHub to Eclipse
  • background: I can’t upload my key to eclipse as my keys are on a cryptostick. My ssh-agent can loaded with the help of opensc.

  • Contributing using git
  • Git vs Team Foundation Server
  • Git: which is the default configured remote for branch?
  • git: how do I merge between branches while keeping some changesets exclusive to one branch?
  • Most developed magit/github extension for emacs for pull requests
  • Git - how do I view the change history of a method/function?
  • 3 Solutions collect form web for “Eclipse git and ssh-agent”

    Update June 2016 (4 years later): Gunnar Wagenknecht now mentions in the comments:

    It’s now possible in Eclipse Neon with project eclipseguru/eclipse-jsch-agent-proxy, an Eclipse ssh-agent and Pageant support.

    https://raw.githubusercontent.com/eclipseguru/eclipse-jsch-agent-proxy/gh-pages/images/ssh-agent-preferences.png


    A workaround for older Eclipse versions is to use the native OS SSH client instead of the Eclipse built-in one by setting GIT_SSH environment variable:

    export GIT_SSH=/usr/bin/ssh
    

    (See EGit SSH configuration and EGit FAQ, SSH Config)

    In your eclipse startup script or .profile (or wherever) add export GIT_SSH=/usr/bin/ssh before starting eclipse. Then eclipse uses default ssh which uses ssh agent and you cann run pull and push commands within eclipse even if your key is on a smartcard.

    Edit: GIT_SSH is interpreted by eclipse’s egit, but also by the stand-alone git. Setting it to /usr/bin/ssh sets it to the default value for stand-alone git, so only egit will change it’s behavior.

    No way! Sooo many years of eclipse out there and still no way to work with a smartcards and ssh/ssh-agent? Really disappointing come back to eclipse..

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=179924

    Git Baby is a git and github fan, let's start git clone.