title: Error when connecting to MySQL over SSH Tunnel on OSX
body: <p>I'm trying to access amazon ec2 mysql server remotely.</p>
  
  <p>My problem is(for sure) with Mac OSX. Cause when I try to connect through the same mysql client(MySQL Workbench 6.0) on windows inside a VM hosted from this very same MacOSX machine, it works just fine.</p>
  
  <p>I've searched a lot about this problem. And <a href="http://forums.macrumors.com/showthread.php?t=1315790" rel="nofollow">this guy</a> figured the problem was with a third-party app called iStatPro(which is actually a dashboard widget). I had the same widget, and I tried to remove it, and it didn't work.</p>
  
  <p>Is it possible that some other app is blocking my 3306 port(or the 22 ssh default port for that matter)? If so, what is the best way to figure which one?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The error I get when trying to connect, is exactly the same error that guy gets. Which is: </p>
  
  <pre><code>Your connection attempt failed for user 'xxxx' from your host to server at xxxx.yyyyy.zzzzz.edu:3306:
  Can't connect to MySQL server on 'xxxx.yyyyy.zzzzz.edu' (61) 
  </code></pre>
  
  <p><strong>EDIT [2]:</strong></p>
  
  <p>Also, then I try to connect using mysql workbench it refuses the connection immediately. Making me think, it don't even have the chance to connect to ssh tunel, getting refused locally.</p>
  
  <p><strong>EDIT [3]:</strong></p>
  
  <p>The parameters I'm using to connect to the mysql remote server is:
  SSH Hostname: 99.999.999.999:22
  SSH Username: ubuntu
  SSH password: empty
  SSH Key File: respective .pem file
  MySQL Hostname: 127.0.0.1
  MySQL Server Port: 3306
  Username: root
  Password: mypassword
  default_schema: my_default_schema</p>
  
  <p><strong>EDIT [4]:</strong></p>
  
  <p>I can establish the connection through terminal just fine.</p>