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?
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.
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.
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)