How to connect local app under IntelliJ Platform to remote dB using SSG port tonneling?

Hi! 

I'd like to debug my C++ app locally but the app should be connected via SSH to the remote Postgre dB. Currently I'm running SSH terminal session and run the app after it:

1. Run terminal

2. Run ssh -L 5432:127.0.0.1:5432 -p 2205 <user@host>

3. Input password

4. Run my app from CLion.

Is it possible to setup the SSH session in CLion automatically when I run the app in specific project? I have to debug with several remote dB servers (3-5) and such a feature would make my life easier.

 

With best regards,

Sergei

0

请先登录再写评论。