title: Laravel MySql DB Connection with SSH
body: <p>I have a couple of remote databases I would like to access, but they are sitting on a server accessible only through SSH with a key.</p>
  
  <p>In Sequel Pro, I connect to this remote DB something like this:
  <img src="https://i.stack.imgur.com/P8KO7.png" alt="enter image description here"></p>
  
  <p>How would I configure my Laravel app to connect to such a DB?</p>
  
  <pre><code>'mysql_EC2' =&gt; array(
          'driver'    =&gt; 'mysql',
          'host'      =&gt; '54.111.222.333',
          'database' =&gt; 'remote_db',
          'username' =&gt; 'ubuntu',
          'password' =&gt; 'xxxxxxxxxxxxxxxxxxxx',
          'charset'   =&gt; 'utf8',
          'collation' =&gt; 'utf8_unicode_ci',
          'prefix'    =&gt; '',
      ),
  </code></pre>