Connection Firebird DB via SSH
<p>I am creating an application with Laravel and Firebird 2.5 and wants to run it on a DigitalOcean server structure. We have 2 servers for the application, one for the web services (lets call it www) and one for the database services. I did a successful setup with Mysql and it works well but we all know Firebird is a rough one. So this is what we did so far: 
Install a LEMP stack in www and Firebird 2.5 SuperServer. As I said these are digital ocean servers, both runs Ubuntu 14.04. 
We created an SSH tunnel between the two server with the following structure:</p>

<pre><code>ssh -L 9500:127.0.0.1:3050 username@db_server_ip_address (Private address)
</code></pre>

<p>But when we tried to hook up the application on www with the database server got the following error:</p>

<blockquote>
  <p>unavailable database</p>
</blockquote>

<p>In the Laravel Configuration file used the following set up:</p>

<pre><code>DB_HOST=127.0.0.1
DB_DATABASE=/home/username/database.gdb
DB_USERNAME=username
DB_PASSWORD=password
</code></pre>

<p>The credentials are correct, we can use it on the remote (db) server.</p>

<p>What do you think what could be the problem? Is it the SSH tunneling?</p>