I have created a mysql instance on Amazon RDS and it gave it me the following settings:
I am trying to connect to this mysql server thru the MySQL Workbench and it always says that SSH tunnel is not authenticated.
I have tried to connected to server via the command prompt AND it WORKS fine. Here is command that I use:
mysql -h ['Endpoint' from setting] --ssl_ca=C:\Users\Jason\Downloads\mysql-ssl-ca-cert.pem -P 3306 - u ['Username' from setting] -p
This prompts me for a password and it works fine!
NOW when I try it with MySQL Workbench, I get error and it says this in the log:
error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
19:17:39 [ERR][ SSH tunnel]: Authentication error opening SSH tunnel: Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
Here is are Settings:
SSH HostName: ['Endpoint' from settings]
SSH Username: ['Username' from settings]
SSH Password: password
SSH Key File: C:\Users\Jason\Downloads\mysql-ssl-ca-cert.pem
MySQL HostName: ['Endpoint' from settings]
MySQL Server Port: 3306
Username: ['Username' from settings]
Password: password same as SSH password
Default Schema: ['DB Name' from settings]
One thing to note is that I have ran the following command on the Server when I was able to successfully connect to server via Workbench.
GRANT USAGE ON *.* TO 'username'@'%' REQUIRE SSL;
ALSO I have given my local IP address (CIDR/IP) access under the 'DB Security Group' on RDS.