title: PostgreSQL with SSH port forwarding password problems
body: <p>I'm trying to connect on my computer to a PostgreSQL database which is only accessible on some server (db allows only local connections). I thought I could use port forwarding like this:</p>
  
  <pre><code>$ ssh someserver.com -L 5100:127.0.0.1:5432
  </code></pre>
  
  <p>and then connect to the database like this:</p>
  
  <pre><code>$ psql -h 127.0.0.1 -p 5100 -U postgres dbname
  </code></pre>
  
  <p>However, the problem is that on the server there is no password, but when I try to connect to the forwarded port it asks me for a password. When I leave it empty it returns "psql: fe_sendauth: no password supplied" and doesn't let me connect.</p>
  
  <p>What could be the reason? I have also a PostgreSQL instance on my computer, could this cause some conflicts?</p>