Yang's Blog

Yang's Blog

How to use an SSH tunnel and MySQL Workbench to connect to a MySQL instance that uses an AWS public EC2 instance?

Sep 27, 20211 min read

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...