bash: powershell: command not found

Viewed 3522

For a node project I will have to work on a remote server and for that I will use filzilla for file transfer and ssh for console.

I use Visual Studio Code, I installed a remote ssh extension, I did the hostname and user configurations as well as secretkey, because before that I had another error The process tried to write to a nonexistent pipe , which I finally solved but now after I start ssh and log in with the password in cmd from Visual Studio Code, I get this error bash: powershell: command not found.

I tried one day to search the internet for that error.

https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration?WT.mc_id=-blog-scottha

https://docs.microsoft.com/en-us/windows/wsl/troubleshooting

I've talked to people who have more experience but within the time limit my advice could be, but I still couldn't solve the error, either it's something from windows or ssh or I don't know. You are the first time I try to do this in general I used heroku or aws that had some facilities.

enter image description here

2 Answers

I changed host machine in the settings JSON file windows to linux

When you got the option to Select Linux, Windows or Mac did you make sure that you know exactly the type of server you are connecting to. Bcs if you choose the wrong one this error gets thrown.

Related