How to use an SSH tunnel and MySQL Workbench to connect to a MySQL instance that uses an AWS public EC2 instance?
Open MySQL Workbench.
Select MySQL New Connection and enter a connection name.
Choose the Connection Method, and select Standard TCP/IP over SSH.
For SSH Hostname, enter the public IP address of your EC2 instance.
For SSH Username, enter the defa...
blog.yangzheng.ca1 min read