question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support SSH socket forwarding

See original GitHub issue

Is 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:open
  • Created 3 years ago
  • Reactions:7
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
djrawcommented, Jan 10, 2021

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.

2021-01-10 05-19-11_DBeaver 7 3 2

0reactions
da-andacommented, Oct 25, 2022

I would also welcome a nice integrated solution instead of more or less hacking your way around it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Forward local port or socket file to remote socket file
No more socat is needed since ssh 6.7. You can forward unix domain sockets directly like: ssh -nNT -L $(pwd)/docker.sock:/var/run/docker.sock user@ ...
Read more >
SSH Tunneling: Client Command & Server Configuration
Local forwarding is used to forward a port from the client machine to the server machine. Basically, the SSH client listens for connections...
Read more >
How to Set up SSH Tunneling (Port Forwarding) - Linuxize
SSH tunneling or SSH port forwarding is a method of creating an encrypted SSH connection between a client and a server machine through...
Read more >
Unix Domain Socket Forwarding with OpenSSH - skreutz.com
OpenSSH is able to forward TCP ports and Unix domain sockets. The server can be configured to restrict who may open respectively listen...
Read more >
How is "Forwarding can be also done through Unix sockets ...
This command connects to via_host. via_host runs a SSH server. It then forwards all connection attempts to source_port on the remote via_host ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found