title: Administer postgres from PGAdmin on remote mac using ssh tunnel
body: <p>I've got PostgreSQL installed on a Ubuntu server and I'm trying to connect to that server using PGAdmin on a remote macbook.</p>
  
  <p>I've created an ssh tunnel -</p>
  
  <pre><code>macbook:~postgres$ ssh -L 5423:localhost:5432 postgres@mydomain.com
  </code></pre>
  
  <p>And I can connect using psql on the macbook as expected - </p>
  
  <pre><code>macbook:~ me$ psql -U postgres -p 5423 -h localhost
  ...
  postgres=#
  </code></pre>
  
  <p>In the 'New Server Registration' window on PGAdminIII I'm entering the following credentials</p>
  
  <pre><code>Name - MyServer
  Host - localhost
  Port - 5423
  Maintenance DB - postgres
  Username - postgres
  Password - &lt;remote_postgres_password&gt;
  </code></pre>
  
  <p>However the connection fails -</p>
  
  <pre><code>Error connecting to the server: FATAL: password authentication failed for user "postgres"
  </code></pre>
  
  <p>Not sure what's going on here, these seem to be the same credentials I've used for psql. </p>