SSH
Local Port Forwarding
Open a tunnel from the client to a server. AKA trying to point your web browser at a private web server.
Format:
ssh -L <local_port>:<remote_addr>:<remote_port> <server>
If you want to access something on the remote server itself, use localhost as the remote_addr
Examples
Port forward a postgres database running on the remote:
ssh -L 5432:localhost:5432 myuser@myserver
Access a private database from an admin host:
ssh -L 5432:database.rds.amazonaws.com:5432 myuser@admin-host
Remote Port Forwarding
Format:
[Read More]