Reputation: 51
I have been having this problem since last week. The remote extension worked before this.
When, I try to ssh I get this pop up error:
The terminal process "C:\WINDOWS\System32\cmd.exe /c (type "C:\Users<home dir>\AppData\Local\Temp\vscode-linux-multi-line-command--863954789.sh" | "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 59760 -F "C:\Users<home dir>.ssh\config" bash) & exit /b 0" terminated with exit code: 255.
and in the terminal I am seeing this:
[11:03:29.127] Terminal shell path: C:\WINDOWS\System32\cmd.exe[11:03:30.542] "install" terminal command done[11:03:30.542] Install terminal quit with output: [11:03:30.556] Resolver error: Error: Got bad result from install script
I am using windows git ssh executable and I can ssh from within GIT bash just fine, and I am pointing to the git ssh executable directly (I can't use the Windows ssh due to GPO, and admin just said would be easier to use the git ssh).
Anyone have any ideas?
I look up error code 255 and the files etc are all there, so i am not sure why that error is being thrown.
My ssh config file looks like this:
Host <hostname>
HostName <host_ip>
User <user_name>
Port 22
GlobalKnownHostsFile C:\Users\<home_dir>\.ssh\known_hosts
ServerAliveInterval 10
IdentityFile c:\Users\<home_dir>\.ssh\id_rsa
Thanks!
Upvotes: 5
Views: 15241
Reputation: 564
I had the same problem, the issue was caused because cmd.exe was returning 1 after uninstalling Anaconda.
Fixed it running this command in powershell:
C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f
Even if it is not the case for you, verify your cmd.exe works fine (not just Powershell)
Upvotes: 9
Reputation: 1324258
Check first if this is similar to microsoft/vscode-remote-release
issue 2805.
This would show up when the server is running but has stopped responding to requests for some reason, and restarting the server would fix it.
That issue suggested:
after use following to kill remote vs server, it's fine now:
VSCode -> View -> Command Palette -> input "remote" -> Select Remote-SSH: Kill VS Code Server on Host...
Or: I could connect after I removed all files in
~/.vscode-server
on the remote Linux server.
Upvotes: 5