MySQL Workbench failing to connect via SSH due to key

。_饼干妹妹 提交于 2019-12-10 19:54:50

问题


Trying to create a remote management connection to the MySQL server via MySQL Workbench v6.3.5 gets me an "ERROR Could not establish SSH connection: ('Bad authentication type', [u'publickey']) (allowed_types=[u'publickey'])." error message.

I've already tried the workarounds published on this older post, and this one as well but can't get it to work.

The SSH key works fine to establish a command-line connection via OpenSSH on terminal, but Workbench is unable to accept it.


回答1:


Ok, I have a solution that worked for me.

You cannot password protect the key.

It must be exported in Open SSH format.

Generate a new public key without a password and add it to your server. Then export it in openssh format and use that in MySQL workbench.

Let me know




回答2:


The bug was reported here for MySQL Workbench 6.3.8, 6.3.9 on Microsoft Windows: https://bugs.mysql.com/bug.php?id=83485 (you can subscribe for email updates).



来源:https://stackoverflow.com/questions/34504232/mysql-workbench-failing-to-connect-via-ssh-due-to-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!