SSH Tunneling
For scenarios where VPN integration isn't feasible, or for legacy workflows, Filess supports access via SSH Tunneling on Dedicated plans.
Overview
SSH Tunneling allows you to forward a local port on your machine to the remote database port through an encrypted SSH connection. This is often safer than opening the database port directly to the internet.
How to Connect
-
Enable SSH: In your dashboard, enable SSH access and add your public SSH key (
id_rsa.pub). -
Open Tunnel: Run the following command in your terminal:
ssh -L 5432:localhost:5432 filess@<your-instance-ip> -i ~/.ssh/id_rsa -N-L 5432:localhost:5432: Forwards local port 5432 to remote port 5432.-N: Tells SSH not to execute a remote command (just forward ports).
-
Connect: Point your database client (DBeaver, pgAdmin, or code) to
localhost:5432. The traffic will be securely routed through the tunnel.