Is your key in openSSH format? And public? Normally you don't pass private keys around.
What versions of db and workbench are you running? Client a Mac,. Windows or linux?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to connect to MySQL Workbench using SSH.
I've tried:
Connection Method: Standard TCP/IP Over SSH
SSH Hostname : 159.203.114.xxx
SSH Username: forge
SSH KeyFile: C:\Users\privKey.ppk
MySQL Hostname: 127.0.0.1
MySQL Serve port: 3306
Username: forge
Password: myPassword
When I test connect, I'm getting the following error:
Could not connect the SSh Tunnel
Authentication error.
Please check that your username and password are correct and try again.
Details (Original exception message):
Bad authentication type, the serve is not accepting this type of authentication.
Allowed ones are: [u'publickey']
[Retry] [Cancel]
But I'm able to SSH using putty, Filezilla, Laravel connection using the same credentials.
Any idea?
The problem was with the key format. I generated it with PuttyGen and it wasn't in OpenSSH format.
Created a new key from command prompt and it worked.
I was using Windows 10, Workbench 6.3,
Please or to participate in this conversation.