title: Codeigniter connect to remote database through SSH tunnel
body: <p>I have been searching all morning but can't find a solution to this:</p>
  
  <p>I'm looking for a way to establish a secure connection in my Codeigniter APP to a remote machine using SSH. Using Navicat I can SSH tunnel into mysql and perform queries and I want to connect the same way through my app. Is there a way?</p>
  
  <p>I have openssl installed on my Ubuntu 11.10 server</p>