我使用eclipse和git (egit)。
我想使用我的ssh-agent,这样我就可以从eclipse中推送。有人知道如何设置egit来使用ssh-agent吗?
背景:我无法将我的密钥上传到eclipse,因为我的密钥在密码记号上。我的ssh-agent可以在opensc的帮助下加载。
发布于 2012-11-15 21:40:19
更新2016年6月(4年后):Gunnar Wagenknecht现在提到了in the comments
现在可以在Eclipse Neon中使用项目
eclipseguru/eclipse-jsch-agent-proxy、Eclipse ssh代理和Pageant支持。

较早的Eclipse版本的一种解决方法是通过设置GIT_SSH环境变量来使用原生OS SSH客户端,而不是Eclipse内置的客户端:
export GIT_SSH=/usr/bin/ssh(参见EGit SSH configuration和EGit FAQ, SSH Config)
发布于 2014-04-18 23:48:26
在您的eclipse启动脚本或.profile (或其他任何地方)中,在启动eclipse之前添加export GIT_SSH=/usr/bin/ssh。然后eclipse使用默认的ssh,它使用ssh代理,您可以在eclipse中运行pull和push命令,即使您的密钥在智能卡上也是如此。
编辑: GIT_SSH是由eclipse的egit解释的,也是由独立的git解释的。将其设置为/usr/bin/ssh会将其设置为独立git的默认值,因此只有egit才会更改其行为。
发布于 2017-08-08 03:40:02
不行!这么多年的月食,仍然没有办法使用smartcards和ssh/ssh-agent?令人失望的是,又回到了eclipse..
https://stackoverflow.com/questions/13396405
复制相似问题