Skip to content

Unable to run any tasks on a remote windows machine using openssh #5989

Closed
@iihmsunn

Description

@iihmsunn

I'm connecting to a Windows 10 machine from a Linux host. Connection is successful, project is opened, terminal is working properly.
I'm using powershell 7 installed in Program Files.

However, if I launch any task, I'm getting the following error:

The terminal process failed to launch: A native exception occurred during launch (Unable to start terminal process: CreateProcess failed).

So far I tried following:

  1. changing the terminal.integrated.automationShell.windows setting. I tried "cmd", "pwsh", "powershell" and the full path to git bash, same result. I can tell the setting is applied because I can get "not found" error if I set the wrong path.
  2. setting default openssh shell to the same pwsh.exe that is used for tasks and terminal, didn't help.

I also tried changing terminal.integrated.profiles.windows and terminal.integrated.defaultProfile.windows but apparently they're irrelevant here.

Edit: I tried tasks with "shell", "process" and "gulp" types, none worked

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugsshIssue in vscode-remote SSHtasksverifiedVerification succeededwindowsIssue on Windows

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions