Create SSH Tunnel for Remote Postgres

ssh postgres

I don't know why I keep forgetting how to do this, so I'm writing it down.

ssh -p <port> -L 2222:localhost:5432 synergy@<remote_server>

© 2024 Code0x378