Forward a local port to a remote host/port through SSH.
Section: DNS HTTP and Remote Connectivity
Create local SSH port forward
bash
bash
ssh -L 5433:127.0.0.1:5432 user@db-bastionExplanation
Useful for securely reaching private services like databases.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing DNS HTTP and Remote Connectivity