在MacOS塞拉利昂试图通过SSH通过标准TCP/IP进行连接时,它出错的原因如下:
Authentication error, unhandled exception caught in
tunnel manager, please refer to logs for details谷歌告诉我,这条错误信息是在2015/2016年间遇到的,当时它与Workbench捆绑在一起,与过时的paramiko有关。我查看了日志(~/Library/Application Support/MySQL/Workbench/log/wb.log),发现了一个与2015/2016年报告的错误不同的地方:
13:24:46 [INF][ SSH tunnel]: Opening SSH tunnel to myproxy.example.com
13:24:47 [ERR][sshtunnel.py:notify_exception_error:235]: Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/Resources/sshtunnel.py", line 303, in _connect_ssh
look_for_keys=has_key, allow_agent=has_key, timeout=SSH_CONNECTION_TIMEOUT)
File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/paramiko/client.py", line 325, in connect
t.start_client()
File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/paramiko/transport.py", line 492, in start_client
raise e
NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead有人碰到这个问题,发现周围有一个工作,让它发挥作用?
目前使用:
更新
在尝试将更新的paramiko (2.2.1)发布到Applications/MySQLWorkbench.app/Contents/Resources/Libraries/paramiko之后,它现在提供了一个错误,它说无法用以下日志启动SSH隧道:
13:46:07 [INF][ SSH tunnel]: Starting tunnel
13:46:07 [ERR][ python]: Error running file /Applications/MySQLWorkbench.app/Contents/Resources/sshtunnel.py
13:46:07 [WRN][ ]: Tunnel manager could not be executed尝试使用paramiko的最新1.x版本(1.18.3),它提供了与上面相同的Crypto.Signature.pkcs1_15错误。
服务器上支持的密钥交换如下:
diffie-hellman-group1-sha1
diffie-hellman-group14-sha1
diffie-hellman-group-exchange-sha1
diffie-hellman-group-exchange-sha256
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
diffie-hellman-group1-sha1
curve25519-sha256@libssh.org
gss-gex-sha1-
gss-group1-sha1-
gss-group14-sha1-发布于 2017-09-07 12:58:24
似乎更新Paramiko确实是使SSH隧道在Workbench中工作的关键。安装Paramiko 2.2.1 (最迟在当时)及其依赖项并删除捆绑的Paramiko使其工作。如果您按照下面的步骤,这使它对我工作在MacOS塞拉利昂(10.12.6)。
pipparamikoparamiko目录sudo easy_install pip
sudo pip install paramiko
sudo mv /Applications/MySQLWorkbench.app/Contents/Resources/libraries/paramiko /Applications/MySQLWorkbench.app/Contents/Resources/libraries/paramiko-old发布于 2017-08-23 17:24:15
我的解决方案:
我安装了MySQL工作台6.3 (但实际上安装了6.3.4.0Build828)。在MySQL工作台上,我会帮助->检查更新,它总是说我是最新版本的。
我试过各种帕拉米科的更新,没有运气。
最后,我来到这里:https://dev.mysql.com/downloads/workbench/
然后我看到了v6.3.9 ( build 10690321)是可用的。所以我下载,安装,并能够连接。
https://stackoverflow.com/questions/45620417
复制相似问题