TLDR
I want to run commands such as "powershell.exe" or "notepad.exe" from my notebook's SSH client, which is connected to my workstation's WSL2 SSHD server
Situation:
- I have a laptop with an SSH client (using Powershell), currently connected to another local workstation using keys. The connection is successful, both from Powershell and VSCode-SSH
- The host PC is running SSHD inside WSL2 running Ubuntu 18.04, which is where my development environment lives
- If I go into bash (or any Ubuntu terminal) in my workstation PC, I can run certain Windows programs such as
powershell.exe
ornotepad.exe
, which is really handy to automate workflows - When calling
powershell.exe
from the host PC, I can open the process from bash (really handy!) - When trying to do this from my local Powershell client, I get:
user@WORKSTATION:~$ powershell.exe
powershell.exe: command not found
Any experts out there know why does powershell.exe fail via SSH, but not locally?
Thank you!