Bug #85057 Could not connect the SSH Tunnel when trying to connect via SSH
Submitted: 17 Feb 2017 22:33 Modified: 17 Feb 2017 23:22
Reporter: al do Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:6.3.9 OS:Linux (Ubuntu 16.04 x86_64)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[17 Feb 2017 22:33] al do
Description:

Try to connect via SSH tunnel. Standard TCP/IP over SSH using a SSH kye file. No password. Just suddenly stopped working. I can connect via command window. 

----[For better reports, please attach the log file after submitting. You can find it in /home/XXX/.mysql/workbench/log/wb.log]

File "/usr/share/mysql-workbench/sshtunnel.py", line 303, in _connect_ssh
    look_for_keys=has_key, allow_agent=has_key, timeout=SSH_CONNECTION_TIMEOUT)
  File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 325, in connect
    t.start_client()
  File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 492, in start_client
    raise e
ValueError: CTR mode needs counter parameter, not IV

14:18:06 [INF][     SSH tunnel]: TunnelManager.wait_connection authentication error: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
14:18:06 [ERR][     SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
14:20:26 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening new one
14:20:31 [INF][     SSH tunnel]: Opening SSH tunnel to XXXXXXX
14:20:31 [ERR][sshtunnel.py:notify_exception_error:235]: Traceback (most recent call last):
  File "/usr/share/mysql-workbench/sshtunnel.py", line 303, in _connect_ssh
    look_for_keys=has_key, allow_agent=has_key, timeout=SSH_CONNECTION_TIMEOUT)
  File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 325, in connect
    t.start_client()
  File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 492, in start_client
    raise e
ValueError: CTR mode needs counter parameter, not IV

14:20:32 [INF][     SSH tunnel]: TunnelManager.wait_connection authentication error: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
14:20:32 [ERR][     SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details

How to repeat:
just try to connect again. Same error on all connections and same error if I try multiple times.  

Suggested fix:
Fix the file that are giving an error? 

sshtunnel.py?
[17 Feb 2017 23:22] MySQL Verification Team
Thank you for the bug report. Duplicate of https://bugs.mysql.com/bug.php?id=84717.