What does this command set up?
ssh -L 5433:localhost:5432 admin@db.example.com
- Local port 5433 forwarded to the DB
- Remote port 5433 exposed to you
- A SOCKS proxy listening on 5432
- A copy of the database to port 5433
-L listens on local port 5433 and tunnels it to localhost:5432 as seen from the remote host.