Bug #49995 Incorrect SSH port gives incorrect/misleading error message
Submitted: 30 Dec 2009 15:21 Modified: 5 Feb 2013 17:40
Reporter: Walter Stanish Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.11 OSS Beta 4842 OS:Windows
Assigned to: CPU Architecture:Any
Tags: error, port, ssh, UI

[30 Dec 2009 15:21] Walter Stanish
Description:
If you specify the incorrect SSH port for the server when reverse-engineering a model, the error message that comes back is incorrect/misleading: "Error: Could not connect to SSH tunnel: ERROR not all arguments converted during string formatting".

How to repeat:
 - Start MySQL workbench
 - Create a new model
 - CTRL+R or Database|Reverse Engineer
 - Specify TCP/IP over SSH as the connection type
 - Specify all parameters correctly, except port
 - Proceed
 - Incorrect/misleading error message will be generated

Suggested fix:
The error should be words to the effect that the SSH connection failed with that hostname/port combination.

It shouldn't be words to the effect that connecting to the SSH tunnel failed, since successful initial SSH connectivity precludes tunnel creation.
[30 Dec 2009 17:29] Walter Stanish
Same is true for incorrect SSH username.
[5 Feb 2013 17:40] Alfredo Kojima
Closing old bug, SSH specific errors are reported adequately in the latest version.