Bug #50131 | SSH tunnel don't work using non standard port | ||
---|---|---|---|
Submitted: | 7 Jan 2010 10:12 | Modified: | 8 Jan 2010 12:04 |
Reporter: | Jonathan DELIZY | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
Version: | 5.2.11 | OS: | Linux (Official Ubuntu 9.10 x86_64 build from mysql.com) |
Assigned to: | CPU Architecture: | Any | |
Tags: | ssh, tunnel, workbench |
[7 Jan 2010 10:12]
Jonathan DELIZY
[7 Jan 2010 12:04]
Johannes Taxacher
the "Could not connect SSH tunnel: ERROR Host key for server 123.456.789.123 does not match!" sounds like ssh client refuses to connect because he's getting a different server key (because 22022 is actually forwarded to another machine). only explaination for me would be that paramiko doesn't use the common known_hosts file and has the key of your FW saved for the connection (maybe from a previous/first connection test) and therefore it refuses now to connect to the same hostname (but actually another sshserver with a differnt key). maybe you can try to remove the offending key fom your known_hosts file and try to connect again to be sure the wrong key is not in there (but as you say that connecting via cmd-line works would imply that theres the right host key already in known_hosts file)
[7 Jan 2010 12:20]
Jonathan DELIZY
I've tried removing ~/.ssh/known_hosts before reporting this bug and it changed nothing. Reading your reply, I remembered about a previous utilization of Workbench so I deleted ~/mysql/workbench Now it works. Perhaps the error message could simply be completed to inform which file to edit to remove the offending key. Thanks for your help.
[8 Jan 2010 12:04]
Susanne Ebrecht
Many thanks to writing a bug report. Unfortunately, we can't do much here. The workaround you gave above is the only solution. I will set this to "not a bug".