我无法连接到数据库,因为工作台一直说无法连接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位
答案 0 :(得分:0)
Pageant适用于Windows。使用Seahorse或Keychain for Linux:
http://www.debianadmin.com/ssh-key-authentication-using-seahorse-gui.html
http://pwet.fr/man/linux/commandes/keychain
答案 1 :(得分:0)
我修复了它,就像它在这个答案中所说的那样: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)
中所述