A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding

HankYeomans · x · 2026-08-08

A reworked tutorial explaining SSH port forwarding using diagrams, hands-on labs, and a visual cheat sheet.

It highlights several practical use cases for SSH tunnels: accessing private VPC services via a bastion host, opening remote localhost ports in a local browser, exposing homelab services through a public server, and turning an SSH connection into a SOCKS proxy for a private network. The tutorial also includes an attached playground with four hosts across three networks for hands-on practice.

Original post →

More from coding & agent

coding & agent channel →