【问题标题】:MySql Workbench cannot open SSH tunnelMySql Workbench 无法打开 SSH 隧道
【发布时间】:2017-07-10 00:00:48
【问题描述】:

上周我一直在成功使用 MySql Workbench,但是今天早上,它系统性地无法打开 SSH 隧道。

我检查了日志,发现如下:

16:46:47 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening new one
16:46:54 [INF][     SSH tunnel]: Opening SSH tunnel to 192.168.200.254
16:46:55 [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

16:46:55 [INF][     SSH tunnel]: TunnelManager.wait_connection authentication error: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
16:46:55 [ERR][     SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
16:47:00 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening new one

然而,当我尝试从终端连接时,SSH 连接工作正常。知道如何解决这个问题吗?

调查结果:

似乎 6.3.9 版本可能存在错误。我使用以下内容重新安装了 MySql Workbench(我在 Ubuntu 上):

# The following will remove mysql too
sudo apt-get remove --purge mysql*

sudo apt-get autoremove
sudo apt-get autoclean

sudo apt-get update

# Then reboot your PC

# Re-install MySql Workbench from the Ubuntu software application

【问题讨论】:

    标签: mysql python-2.7 ssh mysql-workbench


    【解决方案1】:

    我昨天也遇到了同样的问题。我的解决方案是删除 Workbench 及其依赖项并重新安装。我使用 Ubuntu 16.04 和 Workbench 6.3.6。

    【讨论】:

    • 这正是我刚刚所做的。问题发生时我在 6.3.9 上。现在,重新安装后,我在 6.3.6 上,它工作正常。
    猜你喜欢
    • 2015-02-17
    • 2021-11-10
    • 1970-01-01
    • 2016-10-23
    • 2016-02-17
    • 1970-01-01
    • 2020-08-06
    • 1970-01-01
    • 2021-03-16
    相关资源
    最近更新 更多