ssh -p12345 -L 3333:localhost:5432 root@192.168.1.2After this, you can connect to port 3333 on localhost to access remote postgresql DB server.
ssh -p12345 -L 3333:localhost:5432 root@192.168.1.2After this, you can connect to port 3333 on localhost to access remote postgresql DB server.