microsoft / azuredatastudio-postgresql

azuredatastudio-postgresql is an extension for Azure Data Studio that enables you to work with PostgreSQL databases
Other
196 stars 37 forks source link

Connecting to PostgreSQL via SSH connection #317

Open markingmyname opened 2 years ago

markingmyname commented 2 years ago

There is currently no option to connect to a PostgreSQL server via an SSH connection. Can we please get this functionality added before this extension goes GA? Thank you.

image

derekfrye commented 10 months ago

If you can connect via ssh to a server with postegresql on it, there's no need to have this be a Authentication Type in the app is there? I already connect via ssh and use ADS.

ssh -L localhost:5432:<remote host via ssh>:5432 user@<remote host>

Then connect in ADS like this. Doesn't this work for you?

Untitled