title: Connection Mysql Workbench Vagrant
body: <p>I'm using OSX and I have problem to connect MySQL workbench to my vagrant.</p>
  
  <p>I have this configuration:</p>
  
  <p><img src="https://i.stack.imgur.com/vF2Cw.png" alt="config"></p>
  
  <p>the vagrant password is vagrant and the mysql password is root</p>
  
  <p>And I have this error</p>
  
  <p><img src="https://i.stack.imgur.com/CKjru.png" alt="error"></p>
  
  <p>I don't know really if the error is on the mysql connection or ssh connection</p>
  
  <p><code>ssh vagrant@33.33.33.15</code> works</p>
  
  <p>I have an error when MySQL workbench is connecting to ssh</p>
  
  <pre><code>14:58:42 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening new one
  14:58:42 [INF][     SSH tunnel]: Opening SSH tunnel to 33.33.33.15
  14:58:42 [ERR][sshtunnel.py:notify_exception_error:233]: Traceback (most recent call last):
    File "/Applications/MySQLWorkbench.app/Contents/Resources/sshtunnel.py", line 257, in _connect_ssh
      self._client.load_host_keys(os.path.expanduser(ssh_known_hosts_file))
    File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/paramiko/client.py", line 176, in load_host_keys
      self._host_keys.load(filename)
    File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/paramiko/hostkeys.py", line 155, in load
      e = HostKeyEntry.from_line(line)
    File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/paramiko/hostkeys.py", line 67, in from_line
      key = RSAKey(data=base64.decodestring(key))
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py", line 321, in decodestring
      return binascii.a2b_base64(s)
  Error: Incorrect padding
  
  14:58:42 [INF][     SSH tunnel]: TunnelManager.wait_connection returned OK
  14:58:42 [INF][sshtunnel.py:set_keepalive:471]: SSH KeepAlive setting skipped.
  14:58:42 [INF][     SSH tunnel]: SSH tunnel connect executed OK
  </code></pre>
  
  <p>I already try to edit my.cnf on my vagrant commenting bind-address or setting bind-address to 0.0.0.0 but I have the same problem.</p>
  
  <p>Edit: I have the same error on a real server</p>