title: How do I resolve SSH connections failing?
body: <p>I'm using MySqlWorkbench on a Mac and connecting to several remote servers using SSH.</p>
  
  <p>2 of them are local - one in my local VM and one on the server across the room. The third is elsewhere on the world wide wobble.</p>
  
  <p>I can happily open workbench and connect to my 2 local servers immediately.</p>
  
  <p>I can open workbench and do nothing for hours and then connect to them and all still works.</p>
  
  <p>I can open workbench and connect immediately to the remote server. All is good.</p>
  
  <p>But, if I try to connect after any sort of delay (say an hour or so) to the real remote server, I get an error.</p>
  
  <pre><code>Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306:
  Tunnel error: Remote connection to 127.0.0.1:3306 failed: IOError('open SSH channel timeout',)
  
  Please:
  1 Check that mysql is running on server 127.0.0.1
  2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)
  3 Check the root has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines) 
  4 Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting from
  </code></pre>
  
  <p>At this point, I close the app, reopen it, make the connection and all is good.</p>
  
  <p>But it is VERY frustrating having to wait 30 seconds or so to realise I am not going to get a connection, then having to close the app and then reopen it.</p>
  
  <p>Sometimes the app crashes, but not often enough.</p>
  
  <p>Any advice on what I can do to help identify the issue and eliminate it?</p>
  
  <p>Regards,</p>
  
  <p>Richard.</p>