title: Node.js connecting through ssh
body: <p>I have a node.js server that works but needs to be set up for ssh connections:</p>
  
  <pre><code>var mysql = require('mysql')
  var io = require('socket.io').listen(3000)
  var db = mysql.createConnection({
  
      host: 'hostname',
      user: 'username',
      password: '12345',
      database: '12345',
      port: 3306,
      socket: '/var/run/mysqld/mysqld.sock' 
  })
  
  db.connect(function(err){
      if (err) console.log(err)
  })
  </code></pre>
  
  <p>I'm aware that there are ssh npm libraries for this purpose, however the options available (ssh2, node-sshclient, etc) appear to deal with pretty intricate features that may overcomplicate things. I'm looking for the simplest way to connect to my mysql db through ssh. What would be the best way to accomplish this?</p>