MySQL through SSH

Hi Richard,
thanks for pointing me to this
have a good day

 Giulio

Here is one other possible solution for others that read this thread. If you cannot do SSL on the MySQL server then this won’t work.

MySQL can directly support an SSL connection. If you install STunnel on the client side it can connect normally through the STunnel program with a local IP and it will take care of the SSL encryption. This is similar to the SSH tunnel option but it uses SSL.

https://www.stunnel.org/index.html

Here is some MySQL info:
https://dev.mysql.com/doc/refman/5.1/en/ssl-connections.html

I have used STunnel previously but not with MySQL.