Skip to main content


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: 1268
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:remove a folder from git control
Next Topic:Commits pushed to bitbucket have wrong userid
Goto Forum:
  


Current Time: Fri Apr 26 15:00:12 GMT 2024

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

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

Back to the top