I have a local Laravel instance that's set up and running on localhost. I want to connect from that instance to a remote MySQL DB to pull data out of the DB and migrate it to a new DB that's been created locally.
The problem though is that the remote DB is only accessible via one web server, and as such, I have to SSH tunnel through the web server to get to the DB.
I was able to successfully establish this sort of SSH tunnel connection to the remote MySQL DB via MySQL Workbench, but it required all sorts of SSH credentials for the web server in addition to an SSH key file.
Is it possible to set up this sort of thing in Laravel so that I can SSH tunnel from my local Laravel instance to the remote MySQL DB? Thank you.