Tunnel
Secure SSH local port forwarding for the HostnExtra CLI.
Tunnel
HostnExtra Tunnel is the official SSH tunnel plugin for the HostnExtra CLI. It provides secure local port forwarding using the system OpenSSH client, allowing you to securely access services running on remote servers as if they were available on your local machine.
Whether you're connecting to a production database, testing a web application, or securely accessing internal services, HostnExtra Tunnel simplifies SSH port forwarding with reusable tunnel profiles and seamless integration with your existing SSH configuration.
Features
- Secure SSH local port forwarding
- Reusable tunnel profiles
- Open, list, show, and close tunnels
- Automatic SSH host resolution
- Compatible with OpenSSH
- Supports the HostnExtra SSH plugin
- Supports
~/.ssh/config - No passwords or private keys are stored
- Lightweight with zero runtime dependencies
- Fully written in TypeScript
Quick Start
Install the plugin.
hostnextra plugin add tunnelCreate a tunnel profile.
hostnextra tunnel profile add mysql-prod \
--from web-prod:3306 \
--to localhost:3306Open the tunnel.
hostnextra tunnel open mysql-prodContinue with the installation guide to learn more about configuring and managing tunnel profiles.