Create a local ssh tunnel on your machine to postgresql server.
# ssh -N -L 5433:localhost:5432 user@server
this way stays in foreground , with -f flag goes to background.
# ssh -N -L 5433:localhost:5432 user@server
this way stays in foreground , with -f flag goes to background.
σχόλια
από
cHARaKter 2008-04-12 16:08

Replace postgresql with privoxy and you get http traffic tunneled through ssh...handy to bypass firewalls/proxies etc... ;)