Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » SSH proxy connection with JGit library
SSH proxy connection with JGit library [message #1746168] Mon, 24 October 2016 12:13 Go to next message
Jens Bannmann is currently offline Jens BannmannFriend
Messages: 1
Registered: October 2016
Junior Member
I am using maven-jgitflow-plugin which uses JGit to issue git commands.

My remote is configured to use ssh:

git@bitbucket.org:mycompany/reponame.git

As I am behind a proxy, I set up ~/.ssh/config as shown below.

Host *
    ProxyCommand connect -H my.proxy.server:1234 %h %p

For the native git package, this works fine.

However, JGit does not seem to use the ssh config; I always get timeout errors. So how do I specify the proxy that JGit should use? I suspect that I need to set some JVM system properties but could not find any information about this in the documentation or elsewhere.
Re: SSH proxy connection with JGit library [message #1746426 is a reply to message #1746168] Fri, 28 October 2016 13:52 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 924
Registered: July 2009
Senior Member
- JGit is using jsch to implement ssh support. Not sure if this library respects proxy settings in ~/.ssh/config.
- Which version of JGit and jsch are you using ?
- which proxy type are you using ? jsch seems to support http and socks5 proxies.
Previous Topic:folder ignored in submodule appears as tracked
Next Topic:git ssh push hangs with eclipse and tfs
Goto Forum:
  


Current Time: Mon May 29 17:21:24 GMT 2017

Powered by FUDForum. Page generated in 0.02639 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software