title: PostgreSQL via SSH Tunnel
body: <p>I'd like to use RazorSQL to connect to my database which is running on a remote server. I create a SSH tunnel on my localhost with the following command:</p>
  
  <pre><code>ssh -L 1111:remote.server.com:5432 myuser@remote.server.com
  </code></pre>
  
  <p>I configure my connection via RazorSQL's GUI, specifying <code>localhost</code> as the host and <code>1111</code> as the port. When I click on "Connect", the following error message appears:</p>
  
  <pre><code>ERROR: An error occurred while trying to make a connection to
  the database: 
  
  JDBC URL: jdbc:postgresql://localhost:1111/myuser
  
  FATAL:
  no pg_hba.conf entry for host "aaa.bbb.ccc.ddd",
  user "myuser", database "mydatabase", SSL off
  </code></pre>
  
  <p>where <code>aaa.bbb.ccc.ddd</code> is a remote server's IP address.</p>
  
  <p>What is more, I am not allowed to change the contents of my <code>pg_hba.conf</code> file. That's how it look like at the moment:</p>
  
  <pre><code># TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
  
  @remove-line-for-nolocal@# "local" is for Unix domain socket connections only
  @remove-line-for-nolocal@local   all         all                               @authmethod@
  # IPv4 local connections:
  host    all         all         127.0.0.1/32          @authmethod@
  # IPv6 local connections:
  host    all         all         ::1/128               @authmethod@
  </code></pre>
  
  <p>Is it possible to connect to the database server via SSH tunnel using my current setup and without modifying the server's configuration?</p>