Remote port forwarding
Remote port forwarding
Your Mac initiates SSH to the server. A client on that server connects to its loopback listener; the tunnel carries the stream back to the service on your Mac.
Reach a service on your Mac from the SSH server.
SSH SERVER
YOUR MAC
Port mapping
Encrypted SSH
Server-side client
Browser or service
Remote listener
127.0.0.1:18080
Secure Pipes
Established SSH tunnel
Local service
127.0.0.1:3000
Dashed: port mapping. Solid: service access. Replies return through the same tunnel.
Both addresses are loopback on their own machines. This example is not public.