./dev |
Original theme by orderedlist (CC-BY-SA)
Where applicable, all content is licensed under a CC-BY-SA.
|
Command | Description |
---|---|
ssh -L local:local.host:remote remote.host |
Tunnel port local on local.host to remote port on remote.host |
ssh -R remote:local.host:local remote.host |
Tunnel port remote on remote.host to local port on local.host |
Example | Description |
---|---|
ssh -L 8080:localhost:80 user@remote.host |
Send port 8080 connections on localhost to port 80 on remote.host |
ssh -R 2222:localhost:22 user@remote.host |
Send port 2222 connections on remote.host to port 22 locally (ssh redirection from remote to local) |