local-forward

Forward a local port to a remote destination over SSH.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill local-forward
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: local-forward
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/ssh/tunnel/local-forward
Command: npx skills add https://github.com/theslashdojo/dojo --skill local-forward

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Open a local SSH port forward using ssh -L to access a remote service from your local machine, without exposing the remote service publicly.

Core Features & Use Cases

  • Local port forwarding with ssh -L to reach private services behind a bastion or SSH host.
  • Reach databases (e.g., Postgres), internal dashboards, or private APIs from a laptop or dev machine.
  • Use-case: connect to a private Postgres instance from your workstation through a bastion.

Quick Start

Run the open-local-forward.sh script with SSH_HOST, SSH_LOCAL_PORT, SSH_DEST_HOST, and SSH_DEST_PORT to start the tunnel.

Frequently Asked Questions about local-forward

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I open an SSH tunnel to reach a private database from my local machine?

Open a local SSH tunnel to forward a local port to a remote destination over an SSH host, letting you reach private databases or internal dashboards from your workstation without exposing them publicly.

When do I need local port forwarding to access remote services?

You need local port forwarding when connecting to private databases, internal dashboards, or private APIs behind a bastion from your developer laptop or automation environment.

What inputs are required to start an SSH local port forward?

Starting a local SSH port forward requires a remote SSH host, a local port, a destination host and port, plus optional bind address and background options, implemented via OpenSSH ssh -L.

Can I run an SSH tunnel in the background for automation tasks?

Yes, the local SSH tunnel supports optional background options, enabling automated access to private remote services without maintaining an active foreground terminal session.

Does local port forwarding work without exposing the remote service publicly?

Yes, local port forwarding uses ssh -L to tunnel traffic through an SSH host, keeping the remote service private while enabling secure local access from your workstation.