Data Grip connecting to a remote DB via an existing SSH -Proxy... Follow
I'd have an existing ssh socks5 proxy running on port 9999.
The socks proxy tunnles through an ssh proxy:
ssh -tL9999:localhost:9999 <proxySshHost> ssh -t4 -D9999 <finalTargetHost>
This setup can not be duplicated using Data Grip's ssh session.
This setup works, with other java programs and for web browsing.
I want to be able to use the existing socks5 proxy on port 9999 to connect to a remote database vi Data Grip.
Normally, a java program can use this sock5 proxy by running the java program with the following properties...
-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=$socksPrt -DsocksProxyVersion=5
I tried setting the same properties on the "Driver", via the "Advanced" tab. But that does not seem to help.
Is there a was to start up, or configure, DataGrip so that it can use an existing socks5 proxy that is already running?
Please sign in to leave a comment.
I figured it out...
I set socksProxyHost and socksProxyPort in the "Advanced" tab.
And, I had to use the IP address of the remote database, usually, the host resolution worked. But in this case, only the IP works.
Data Source Properties -> Advanced -> VM Options: "-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=9999"