port forward localhost 5433 to redflag 5432 to tunnel postgres connection
ssh -L 5433:localhost:5432 jesses@redflag.funnygarbage.com
Labels: command line, pgsql, port forward, postgres, shell, ssh, sysadmin, system administration, tunnel
ssh -L 5433:localhost:5432 jesses@redflag.funnygarbage.com
Labels: command line, pgsql, port forward, postgres, shell, ssh, sysadmin, system administration, tunnel
This will take port 2222 on your local host and terminate it at 22 on ultimate_destination_host_ip via
your ssh tunnel to intermediary_host_ip
ssh -L 2222:ultimate_destination_host_ip:22 intermediary_host_ip -l username_common_to_both_hosts
Labels: command line, port forward, shell, ssh, sysadmin, system administration, tunnel