最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Configure terminal SSH command in DataGrip SSH tunnel - Stack Overflow

programmeradmin1浏览0评论

I use this SSH terminal command to see my DBs in DataGrip:

ssh -L IP1:Port1:IP11:Port11 -L IP2:Port2:IP22:Port22 -L IP3:Port3:IP33:Port33 username@IP4

After executing above command, it ask me username's password.

After entering correct password, it asks me to choose the desired site from list.

After all it connects, and then I can see my DBs in DataGrip.

How can I configure these steps in DataGrip SSH tunnel?

To have no SSH terminal connection any more.

I use this SSH terminal command to see my DBs in DataGrip:

ssh -L IP1:Port1:IP11:Port11 -L IP2:Port2:IP22:Port22 -L IP3:Port3:IP33:Port33 username@IP4

After executing above command, it ask me username's password.

After entering correct password, it asks me to choose the desired site from list.

After all it connects, and then I can see my DBs in DataGrip.

How can I configure these steps in DataGrip SSH tunnel?

To have no SSH terminal connection any more.

Share Improve this question edited Jan 19 at 12:49 Ali Ashja' asked Jan 19 at 12:30 Ali Ashja'Ali Ashja' 1753 silver badges10 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

Performing the following steps should help:

  • set up your ~/.ssh/config file for IP4 host to use LocalForward:
Host IP4
LocalForward IP1:Port1 IP11:Port11
LocalForward IP2:Port2 IP22:Port22
LocalForward IP3:Port3 IP33:Port33
  • create the SSH configuration for your IP4 host (Settings | Tools | SSH Configurations) and select Parse config file option (or just choose OpenSSH config... as Authentication type);
  • add this configuration under the enabled Use SSH Tunnel option on your screenshot.
发布评论

评论列表(0)

  1. 暂无评论