Local port forwardingA client on your Mac connects to a local listener. SSH carries the stream to the server, which opens the remote target. Responses travel back through the same tunnel.
Client on MacDatabase appLocal listener127.0.0.1:15432SSH serverYour trusted hostRemote target127.0.0.1:5432
One local port. A service reached through SSH.Arrows show connection setup. Data travels in both directions.