# Wp-cli in SSH Not Working on Windows in Local 5.5.3

**URL:** <https://community.localwp.com/t/wp-cli-in-ssh-not-working-on-windows-in-local-5-5-3/20062>\
**Category:** Support\
**Created:** [June 5, 2020, 10:34pm UTC](https://community.localwp.com/t/wp-cli-in-ssh-not-working-on-windows-in-local-5-5-3/20062 "2020-06-05T22:34:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrwweb](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/mrwweb/32/5098_2.png) [@mrwweb](https://community.localwp.com/u/mrwweb)\
**Post date:** [June 5, 2020, 10:34pm UTC](https://community.localwp.com/t/wp-cli-in-ssh-not-working-on-windows-in-local-5-5-3/20062/1 "2020-06-05T22:34:48Z")

</div>

Windows 10 Build 19401 with Local 5.5.3.

When I start a new SSH session and run basic wp-cli commands, I don’t get any return values and the commands themselves seem to have no impact.

![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/6/6d847efd4f536f4be04b8dfd73eb6dd366890267.png)

I just updated to WSL2 which also broke the old Local (WSL2 requires Hyper-V which conflicts with VirtualBox), so I’m really deep in it right now.

---

<div class="post-metadata">

**Author:** ![austinginder](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinginder/32/11164_2.png) [@austinginder](https://community.localwp.com/u/austinginder)\
**Post date:** [June 9, 2020, 2:21pm UTC](https://community.localwp.com/t/wp-cli-in-ssh-not-working-on-windows-in-local-5-5-3/20062/2 "2020-06-09T14:21:43Z")

</div>

It looks like WSL2 blocks any communication from linux going to localhost. That’s causing lots of problems with other applications as well, not just Local. I went through getting my workflow working from WSL2 this past week and wrote about it here: [https://anchor.host/local-lightning-and-upgrading-to-wsl2/](https://anchor.host/local-lightning-and-upgrading-to-wsl2/). Hope this is helpful.

---

<div class="post-metadata">

**Author:** ![guerra08](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@guerra08](https://community.localwp.com/u/guerra08)\
**Post date:** [July 8, 2020, 1:08am UTC](https://community.localwp.com/t/wp-cli-in-ssh-not-working-on-windows-in-local-5-5-3/20062/3 "2020-07-08T01:08:56Z")

</div>

Hey man, just read your post and artice, very nice stuff!

I’m using localwp in my Windows machine with WSL2 enabled. But, I have some question about your workflow:

- Are you using the WSL2 filesystem or the standard NTFS?
- Do you run cli commands from the Windows-side or WSL-side?
- Did you setup composer for projects using local?

Anyway, thanks for the writeup and info!

---

<div class="post-metadata">

**Author:** ![austinginder](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinginder/32/11164_2.png) [@austinginder](https://community.localwp.com/u/austinginder)\
**Post date:** [July 8, 2020, 7:44pm UTC](https://community.localwp.com/t/wp-cli-in-ssh-not-working-on-windows-in-local-5-5-3/20062/4 "2020-07-08T19:44:44Z")

</div>

So Local manages the WordPress sites on the Windows site under C:\Users\<user\>\Local Sites. I run all of my CLI commands using WSL using the equivalent \mnt\c\Users\<user\>\Local Sites. I use Composer lightly for a some plugin development which seems to work fine over WSL.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [October 6, 2020, 7:44pm UTC](https://community.localwp.com/t/wp-cli-in-ssh-not-working-on-windows-in-local-5-5-3/20062/5 "2020-10-06T19:44:45Z")

</div>

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