Workbench Could not connect the SSH Tunnel Authentication error
生活随笔
收集整理的這篇文章主要介紹了
Workbench Could not connect the SSH Tunnel Authentication error
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1. 問題現象
平日正常使用的 Workbench 在重啟電腦之后發現無法連接到對應的數據庫,workbench log顯示
SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
查閱完整 log 發現如下內容:
$ tail -f ~/.mysql/workbench/log/wb.log File "/usr/share/mysql-workbench/sshtunnel.py", line 303, in _connect_sshlook_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 connectt.start_client()File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 492, in start_clientraise e
NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead14:17:14 [INF][ SSH tunnel]: TunnelManager.wait_connection authentication error: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
14:17:14 [ERR][ SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
14:18:24 [INF][ WBContext]: Connection to XinJangCityWolMart cancelled by user: Tunnel connection cancelled
重點是
NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead
使用 pip list 查詢后發現
$ pip2 list | grep crypto
asn1crypto (1.4.0)
cryptography (2.7)
pycrypto (2.6.1)
pycryptodome (3.11.0)
有個 pycryptodome 東東,可能是后面安裝其它工具的時候附帶安裝上的。
?
2. 解決方法
卸載 pycryptodome
sudo pip2 uninstall pycryptodome
然后重新打開 Workbench 連接數據庫恢復正常。
總結
以上是生活随笔為你收集整理的Workbench Could not connect the SSH Tunnel Authentication error的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2022-2028年中国露天采矿行业调查
- 下一篇: 2022-2028年中国可生物降解农用薄