title: Create a SSH tunnel from a Jump host to a Database and access the database on Jump Host Port
body: <p>I am trying to create a SSH tunnel between a database running server port and another server as the following. </p>
  
  <p><code>MySQL:3306 &lt;=====&gt; Server-A:3306</code></p>
  
  <p>And I want to use the <code>Server-A:3306</code> as the database URI to connect to the database. </p>
  
  <p>I am running the following on ServerA </p>
  
  <p><code>ssh -f -N -i ~/keys/test.pem foo@foo.storesandbox.com -L5001:127.0.0.1:2001</code></p>
  
  <p>I can see that the tunnel is up and running. But when I use the public IP of Server-A and try to connect to the database, It does not work.</p>
  
  <p>If I create another tunnel between between Server-A and where I run the MySQL client. then it works. But I don't want to do that.</p>
  
  <p>What can be the reason for this issue. I am fairly new to scripting </p>