Site Shell/SSH Connection immediately closes

When using the right click + open site shell option on mac, the terminal will open and run through a series of commands but it only seems to change the working directory to the site path and does not actually open a session

‘/Users/aware/Library/Application Support/Local/ssh-entry/HceBJ0X7y.sh’; exit
Last login: Sat Aug 8 10:12:59 on ttys005
aware@aware-mbp ~ % ‘/Users/aware/Library/Application Support/Local/ssh-entry/HceBJ0X7y.sh’; exit
-n -e
Setting Local environment variables…

WP-CLI: WP-CLI 2.5.0-alpha
Composer: 1.10.8 2020-06-24
PHP: 7.3.5
MySQL: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)

Launching shell: /bin/zsh …
aware@aware-mbp public %

If I pwd just to see where I am, it’s still in the context of my local machine not within shell for the site I am expecting

I have seen other topics that mention an issue with the exit; command being an issue. I tried both with and without and both have the same result.

Any help is greatly appreciated.

As seen here How to SSH access

Really what I am trying to do is related to changing an imported site to a multisite as seen here Multisite Migration Live to Local

Hey @aware, Welcome to the forums!

Those two posts relate to the older, Local Classic version that was built on Docker. Newer versions of Local (5.x+) will create the WordPress sites directly on the Host computer, so you aren’t actually “connecting over ssh”.

Right now, Local can’t automatically import a Multisite into Local, but in terms of getting you to a place where you can use your site, the general workflow I recommend would look something like what’s described later in that thread:

So basically:

  1. Create a new, plain Multisite in Local
  2. Manually extract the site backup, and import it into the newly created site
  3. Update the various domains within the database

Thanks for the response @ben.turner, That makes sense and is exactly what I ended up doing. Somewhat related you may want to archive those old posts if they aren’t applicable anymore.

1 Like

I totally agree and it’s something that we’re trying to figure out the best way to do in an efficient way!

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