Using ProxyCommand on JGit [message #1859357] |
Fri, 02 June 2023 05:03  |
Eclipse User |
|
|
|
Hi,
I'm trying to use JGit to do SCP Operations through an HTTP-Proxy. I'm already able to do that via console by adding a ProxyCommand :
proxytunnel -p localhost:7084 -d host_ip:22 -v
How can I add this to my JGit Application? The best answer I found so far was to add it to my .ssh/config file like this:
Host host_ip
HostName host_ip
ProxyCommand proxytunnel -p localhost:7084 -d host_ip -v
but it seems to be ignored by JGit. Any suggestions?
|
|
|
|
Re: Using ProxyCommand on JGit [message #1861021 is a reply to message #1859615] |
Thu, 14 September 2023 09:43  |
Eclipse User |
|
|
|
Hi, Sorry for the late reply, I was busy with lots of other stuff.
First of all, thanks for the help!
Unfortunatly, setting HTTP_PROXY has the same result. When Doing SSH-Operation by console, it works as intended, it goes through the proxy tunnel and creates a log file entry in the access-log of my proxy.
But When I run JGit and do an SCP-Operation, it downloads the file as wanted, but doesn't log anything. So it seems like, JGit ignores both HTTP_PROXY and the settings in .ssh/config
|
|
|
Powered by
FUDForum. Page generated in 0.11167 seconds