FerryDocs
ConceptsDatastores

Connect from your machine

The external URL works on the server only. An SSH tunnel brings its port to your machine.

Edit on GitHub
Your serverSSH tunnelYour machinepsqlHost port127.0.0.1:62975Datastoreapp-db

Ferry publishes one port of the datastore, on 127.0.0.1 of the server only.

1 / 3

On the server itself, use the directly. From your machine, open an first.

Get the external URL

Terminal
ferry db show app-db

Read the line External URL. The number after 127.0.0.1: is the .

Open the tunnel

Terminal
ssh -L 62975:127.0.0.1:62975 you@your-server

Connect

Terminal
psql 'postgresql://app_db:…@127.0.0.1:62975/app_db'

is the client of Postgres.

On this page