Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

troelsjohnsen's avatar

Enable remote access to database without SSH

Hi everybody,

I am trying to open up my Forge-created server to allow remote access to my MySQL-database.

I have found this previous topic and tried to follow the steps, but without any success: https://laracasts.com/discuss/channels/forge/remote-connection-to-mysql

Any of you know of any guides on how to open up remote access (without SSH) to the MySQL database?

0 likes
10 replies
Cronix's avatar

If you're using aws, etc, did you open the port up in a policy (on aws, not forge)?

troelsjohnsen's avatar

I am not using AWS, but I am using a server in our own data center.

I don't know that much about server configuration, but could there be something else in front of my server, that I need to configure?

troelsjohnsen's avatar

Here the values from:

ufw status:

3306                       ALLOW       Anywhere 
3306 (v6)                  ALLOW       Anywhere (v6)  

sudo netstat -ntlup | grep mysql

tcp6       0      0 :::3306                 :::*                    LISTEN      6213/mysqld
troelsjohnsen's avatar

I can't actually remember how I solved this issue, but I think it was related to another firewall in front of the server I was trying to connect to.

So I had to configure the firewall through the Forge dashboard, but also the firewall in front of the server.

themberger's avatar

I cannot connect to my EC2 database no matter what I try! My public key is added to Forge and I can ssh into the Forge server using my private key in Terminal. I try to connect using my private key in MySQL Workbench and no matter what I try I get the following message...

"Access denied. Authentication that can continue: publickey".

I have searched Google for hours and have found nothing that helps. Any additional assistance would be greatly appreciated!

themberger's avatar

Thank you for the response! It ended up being a MySQL Workbench issue. Not sure what because I downloaded Sequel Pro and connected with no issues. Thanks again!

Please or to participate in this conversation.