Find Remote Host and Port

Can anyone help me with finding the remote host and remote port like the below article. I know that this user is using an older version of Local. How would I find it in Local Lighting.

Article: WP-CLI LocalWP without "Open Site Shell" - Sal Ferrarello

My Version


1 Like

Hey @ctwds –

Can you describe in a little more detail what you’re trying to do?

The recent versions of Local (the 5.x versions and above) don’t make use of Docker and instead install and configure MySQL directly on the computer. Because of this, there isn’t a need to ssh into the Local site in order to run terminal commands.

That being said, each site does have its own configuration for PHP, NGINX and MySQL. When you right-click on the site within Local and select “Open Site Shell” this basically runs a few commands to set that terminal’s context to that specific Local site. This includes things like:

  1. Which DB configuration to use
  2. What PHP configuration to use
  3. Add wp-cli to your path

An example of what script is run, can be seen at the top of the terminal after opening the site shell, and looks something like this:

/Users/username/Library/Application\ Support/Local/ssh-entry/ABF59exMD.sh ; exit;

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.