How to Connect Remote Database in Laravel 5 using ssh
<p>I am using Laravel 5.0. I Want to Know How to Access Remote Database using SSH. </p>

<p>database.php</p>

<pre><code>'mysql' =&gt; [
            'driver'    =&gt; 'mysql',
            'host'      =&gt; 'www.xxxxx.in',
            'port' =&gt; '2222',
            'database'  =&gt; 'xxxx_xxx',
            'username'  =&gt; 'xxxxx_xx',
            'password'  =&gt; 'xxxx0xx',
            'charset'   =&gt; 'utf8',
            'collation' =&gt; 'utf8_unicode_ci',
            'prefix'    =&gt; '',
            'strict'    =&gt; false,
            'engine'    =&gt; null,
        ],
</code></pre>