I have the following network configuration
localhost -> proxy -> databaseserver
I'm using OpenSSH ProxyJump to establish a cli ssh connection from my localhost to the databaseserver without having to deal with an explicit tunnel. It works fine ! Here's a sample configuration of my ssh/config file
[me@localhost] cat .ssh/config
Host databaseserver
User user
HostName databaseserver_ip
ProxyJump user@proxy
[me@localhost] $ ssh user@databaseserver
[user@databaseserver] $
There's no hint about databaseserver's ip in my localhost's /etc/hosts file
What I am trying to achieve is to use ProxyJump with psql (or any other graphical software) in order to avoid creating a dedicated ssh tunnel. ie :
[me@localhost] $ psql -H user@databaseserver
But that does not work at all ! databaserver is unknown to the psql software. It does not seem to consider .ssh/config content.
Is there a way to run a proxyjump connection with something else than the ssh command ?
