Ternux
Port Forwarding

Remote Port Forwarding

Expose a local port on the remote SSH server.

Remote port forwarding maps a port on the remote SSH server to a service running on your local machine (or a host reachable from it). Traffic arriving at the remote port is forwarded back through the SSH tunnel to you.

Common use cases

  • Share a local development server with a colleague via the remote server
  • Expose a webhook receiver during development
  • Allow a remote script to call back to a local API

Adding a remote forward

  1. Go to Connections → Port Forwarding.
  2. Click New TunnelRemote.
  3. Fill in:
FieldExampleDescription
Connectiondev-serverThe SSH host
Remote port9000Port to open on the SSH server
Local host127.0.0.1Target host on your local network
Local port3000Local port to forward traffic to
LabelDev webhookFriendly name
  1. Save, then toggle the tunnel Active.

How it works

SSH Server                Your Machine
remote:9000  ─→  SSH channel  ─→  localhost:3000

Anyone connecting to remote:9000 will reach your local service on port 3000.

Remote forwarding requires GatewayPorts yes on the SSH server (sshd_config) if you want the remote port accessible from outside the server itself.

On this page