Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Workbench (version 6.0.8) SSH Authentication Issue

Tags:

I am trying to connection to a MySQL server on Host X through machine Y over SSH.

The same setup (but older version of MySQL workbench) works on my another box (CentOS 6.3).

However, the same setup doesn't work on my CentOS 6.5.

I tried to use the SSH key for authentication between my box and machine Y over SSH, and it works when I ssh from my box to machine Y.

However, MySQL workbench gave me the following error: ERROR Could not establish SSH connection: Bad authentication type (allowed_types=['publickey', 'gssapi-with-mic']).

Some people suggested that I set AllowTcpForwarding to yes in /etc/ssh/sshd_config, which I did, restarted the service and rebooted my machine.

But I still got the same error.

Any idea?

It seems like for some reason the .ssh/id_dsa key isn't picked up when MySQL workbench attemtps to connect.

Thanks in advance.

like image 877
Hei Avatar asked Feb 03 '14 12:02

Hei


1 Answers

You need to ensure that your private key is in openssh format. With puttygen you can export as Openssh. This worked for me.

like image 191
user3938452 Avatar answered Sep 25 '22 13:09

user3938452