By Ajay Singh
I’ve been trying to connect my mysql db through workbench over SSH, but I can’t seem to get it to work.
I keep getting the error “Could not connect the SSH Tunnel, please check username and password.” and right after that error “Failed to connect to MySQL at 127.0.0.1:3306 through SSH tunnel at [my droplet ip] with user root”
What I have at the moment: SSH Hostname: [droplet ip] SSH username: root SSH password is blank SSH key file: [private key path] MySQL hostname: 127.0.0.1 MySQL port: 3306 username: root password: [mysql user root password]
I’ve already tried switching the bind-address and the MySQL hostname to 0.0.0.0, but nothing changed. I also checked if port 3306 is occupied but that wasn’t the case.
Also at workbench server connection editor there are 2 extra tabs, Remote Management and System Profile. Do I have to do something there or should I choose, Do not use remote management?
Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @pietervdheuvel:
I was running in to the same problem and found a solution here.
Basically, you need to convert your Putty key to an OpenSSH format using PuttyGen.
Hope this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.