【问题标题】:linux ssh tunnel mysql workbenchlinux ssh隧道mysql工作台
【发布时间】:2016-07-21 15:53:56
【问题描述】:

我无法连接到数据库,因为工作台一直说无法连接 SSH 隧道我检查日志文件

11:49:45 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening  new one
11:49:47 [INF][     SSH tunnel]: Opening SSH tunnel to x.x.x.x
11:49:47 [ERR][   sshtunnel.py]: Traceback (most recent call last):
File "/usr/share/mysql-workbench/sshtunnel.py", line 231, in _connect_ssh
look_for_keys=has_key, allow_agent=has_key)
File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 306, in connect
t.start_client()
File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 465, in start_client
raise e
SSHException: Incompatible ssh peer (no acceptable kex algorithm)
11:49:47 [ERR][     SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
11:49:48 [INF][      WBContext]: Connection to ovs cancelled by user: Tunnel connection cancelled

我可以使用密钥连接到终端中的远程主机,但不能在工作台中连接。 与此相关的其他人说他们使用选美我尝试为 linux 寻找选美但没有运气。

我正在运行 linux mint 17.3 64 位

【问题讨论】:

    标签: mysql linux ssh


    【解决方案1】:

    【讨论】:

    • 我查看了钥匙圈,钥匙在那里。
    • 我在问题中发布了日志。我可以查看另一个日志文件吗?
    【解决方案2】:

    我修复了它,就像它在这个答案中一样:https://stackoverflow.com/a/42029615/863403 所以所有学分都归@hansaplast

    更改您的 transport.py:

    sudo nano /usr/lib/python2.7/dist-packages/paramiko/transport.py
    

    按 CTRL+W 搜索词条

    return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode']
    

    替换

    return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], iv, counter)
    

    有了这个

    return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], '', counter)
    

    Github pull request中所述

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-26
      • 1970-01-01
      • 1970-01-01
      • 2012-03-06
      • 2015-08-26
      • 2014-10-13
      • 2018-02-22
      • 1970-01-01
      相关资源
      最近更新 更多