Skip to content
SSH host key verification and port forwarding on Trial
vasilevtr
OP

3 hours ago

Hello!

I would like to securely back up my private PostgreSQL database using GitHub Actions via Railway SSH.

Could you please confirm:

  1. The official SSH host public key for ssh.railway.com in OpenSSH known_hosts format, including its SHA256 fingerprint.
  2. Whether SSH local port forwarding (-L) is supported on the Trial plan.
  3. Whether this method allows access to PostgreSQL without exposing it publicly.

Thank you!

Awaiting User Response

1 Reply

Railway
BOT

3 hours ago

We don't publish a host key, fingerprint, or known_hosts entry for ssh.railway.com. Several hosts serve the endpoint, each with its own key, and those hosts change without notice. That means the fingerprint can be different from one connection to the next, and pinning one will eventually break your workflow.

Railway SSH supports local port forwarding with ssh -L. The connection is opened from inside your container, and it can only reach the container's own loopback and your project's private network. Public destinations are refused. See the railway ssh docs for details.

This method lets you reach PostgreSQL without exposing it publicly. If the database has no public TCP Proxy, railway connect postgres --tunnel-only opens an SSH tunnel and prints the connection details for an external client. You don't need a public URL. See the railway connect docs.


Status changed to Awaiting User Response Railway • about 3 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...