Support SSH socket forwarding
See original GitHub issueIs your feature request related to a problem? Please describe.
In some situations there is a need to connect to a remote database server over Unix socket instead of TCP port. For example, MySQL server configured with skip-networking
, or PostgreSQL configured to accept only local
connections and no TCP host
connections. Or as in my case, because I just want to avoid supplying a password and rely on PostgreSQL peer
authentication only.
Describe the solution you’d like
Support for the equivalent of ssh username@dbserver.example.com -L 5555:/var/run/postgresql/.s.PGSQL.5432 -fN
inside DBeaver (supported since OpenSSH 6.7). This would be a good addition to the existing SSH tunnel option using TCP ports.
Describe alternatives you’ve considered Currently I’m just running this externally, but it would be nice to have this in the DBeaver connection configuration.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:5 (1 by maintainers)
As a workaround you can use DBeavers function to start a shell command before connecting and place the needed ssh command there.
This also works for Win10 as of april 2018 as an OpenSSH client is included. You need to use key authentication though to use it without a password prompt.
I would also welcome a nice integrated solution instead of more or less hacking your way around it