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