Digitalist Network // August 23 2017
Connect MySQL Workbench or Sequel Pro to Vagrant via SSH
Hi.
Using a tool like Workbench or Sequal Pro helps you when working with the database. So it’s really nice to let that application connect to you vagrant machine where the mysql server is running. To do that you need the application to connect through an ssh tunnel. So here’s is how.
In the project folder where you normally execute vagrant up (where your Vagrantfile is located) do
to list your configuration.
In my case it gave me this output:
So here you can see that Vagrant is using private_key file for authentication. To test this you can try in you terminal to
this instead of the normal command vagrant ssh witch works without the key file flag.
No you can configure your mysql application using:
and your done.