Search code examples
phplaravelsshhomesteadsequelpro

Sequel Pro closes Laravel Homestead SSH session


Ever since upgrading to the newest version of Laravel Homestead (v0.4.0), I'm having a weird issue where when I try to log in to Sequel Pro, it disconnects my Homestead SSH and does not let me back in unless I do vagrant suspend followed by vagrant up.

The error message it gives me is:

vagrant@homestead:~$ Connection to 127.0.0.1 closed by remote host.
Connection to 127.0.0.1 closed.

And when I then try and login via Sequel Pro I get the following error message:

Connection Failed!
Unable to connect to host 127.0.0.1, or the request timed out.

Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).

MySQL said: Can't connect to MySQL server on '127.0.0.1' (61)

My Sequel Pro settings are:

Name: Homestead
Host: 127.0.0.1
Username: homestead
Password: secret
Port: 33060

Worth referencing I have setup Sequel Pro as per this post here: http://www.tannerhearne.com/using-sequel-pro-laravel-homestead/


Solution

  • I actually solved this by using the following Sequel Pro settings:

    Host: 192.168.10.10
    Username: Homestead
    Password: secret
    Port: 3306
    

    where 192.168.10.10 is the IP address of my vagrant box.

    It seems the new Homestead update (v0.4.0) rendered my previous settings, useless.