Postegresql in tunnel

how could I use tunnel to connect to a local postgresql database from pgadmin?