vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

[BUG][URGENT] After update to v0.126.0 Remote SSH keep failure to connect remote server

Open Nevuly opened this issue 3 months ago • 82 comments

Is there an existing issue for this bug?

  • [x] I have searched the existing open issues and found none that apply.
  • [x] If I find any issue of interest that is related or closed, I will included a link to it in this issue.

Required Troubleshooting Steps

  • [x] I have read and performed the troubleshooting steps
  • [x] I have tried both values of the remote.SSH.useLocalServer setting
  • [x] My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
  • [x] I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar

[Optional] Diagnose with Copilot

I did not ask the @remote-ssh participant for help

In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?

I did not try step 2 of the troubleshooting steps

Remote-SSH Log

Remote-SSH Log

[11:00:30.640] Using connect timeout of 17 seconds
[11:00:30.643] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[11:00:30.644] "install" process failed: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh
[11:00:30.645] Exec server for ssh-remote+7b22686f73744e616d65223a2247205365727665722028496e7429227d failed: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh
[11:00:30.646] Error opening exec server for ssh-remote+7b22686f73744e616d65223a2247205365727665722028496e7429227d: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh
[11:00:30.648] No hints found in the recent session.

Expected Behavior

It should connect to the remote server correctly.

Actual Behavior

The connection to the remote server fails with the attached error.

Related Issues: https://github.com/microsoft/vscode-remote-release/issues/11793, https://github.com/microsoft/vscode/issues/329735

Steps To Reproduce

  1. Update the Remote - SSH extension to v0.126.0.
  2. Attempt to connect to the remote server.
  3. The connection fails with the error shown in the attached log.

Recovery Rollback the Remote-SSH extension to a version prior to v0.126.0.

Anything else?

Based on the related issues, it seems this problem has existed since the Insider build. I don't understand why it was pushed to the official release without being fixed.

Nevuly avatar Aug 26 '26 02:08 Nevuly

same issue, log output:

[10:04:51.085] Using connect timeout of 17 seconds
[10:04:51.087] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[10:04:51.088] "install" process failed: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh
[10:04:51.089] Resolver error: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh
    at M (file:///d:/Microsoft%20VS%20Code/110a328ea5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:520:2336)
    at $Z (file:///d:/Microsoft%20VS%20Code/110a328ea5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:674:132878)
    at Object.createTerminal (file:///d:/Microsoft%20VS%20Code/110a328ea5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:674:151910)
    at c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:822861
    at new Promise (<anonymous>)
    at D (c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:820656)
    at t.runSshTerminalCommandWithLogin (c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:823939)
    at t.tryInstall (c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:845611)
    at async c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:805393
    at async t.withShowDetailsEvent (c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:808630)
    at async A (c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:801858)
    at async t.resolve (c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:806044)
    at async c:\Users\xxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:1099342
[10:04:51.097] ------

M-Kepler avatar Aug 26 '26 02:08 M-Kepler

I encountered the same issue. After downgrading to version 0.124.0, the problem went away. Error message:

Could not establish connection to "xxxx": Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh.

SWHL avatar Aug 26 '26 02:08 SWHL

I can confirm this issue on Windows with:

VS Code 1.134.0 Remote - SSH 0.126.0

I get the same "cannot use API proposal: terminalRemoteResolver" error and Remote - SSH will not connect.

I confirmed the SSH server itself is working correctly by connecting to the same host outside VS Code.

I then downgraded Remote - SSH from 0.126.0 to the previous 0.125.x version. The problem immediately disappeared and Remote - SSH connected normally to the exact same host.

So I can independently confirm that Remote - SSH 0.126.0 is the cause, and 0.125.x is a working workaround.

TinkerNightmare avatar Aug 26 '26 02:08 TinkerNightmare

same issue

JianxiangL avatar Aug 26 '26 02:08 JianxiangL

same issue. [10:14:16.270] Resolver error: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver. Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh

5z1punch avatar Aug 26 '26 02:08 5z1punch

I have got same issue, temporarily downgrade to v0.124.0. Error message on my Windows:

[10:17:50.178] Log Level: 2
[10:17:50.196] SSH Resolver called for "ssh-remote+xxx.xxx.xxx.xxx", attempt 1
[10:17:50.212] remote.SSH.useLocalServer = false
[10:17:50.213] remote.SSH.useExecServer = true
[10:17:50.214] remote.SSH.bindHost = {}
[10:17:50.214] remote.SSH.showLoginTerminal = false
[10:17:50.215] remote.SSH.remotePlatform = {"xxx.xxx.xxx.xxx":"linux","xxx.xxx.xxx.xxx":"linux","tenderai-Oracle":"linux"}
[10:17:50.215] remote.SSH.path = 
[10:17:50.216] remote.SSH.configFile = 
[10:17:50.217] remote.SSH.useFlock = true
[10:17:50.218] remote.SSH.lockfilesInTmp = false
[10:17:50.219] remote.SSH.localServerDownload = auto
[10:17:50.219] remote.SSH.remoteServerListenOnSocket = false
[10:17:50.220] remote.SSH.defaultExtensions = []
[10:17:50.220] remote.SSH.defaultExtensionsIfInstalledLocally = []
[10:17:50.221] remote.SSH.loglevel = 2
[10:17:50.222] remote.SSH.enableDynamicForwarding = true
[10:17:50.223] remote.SSH.enableRemoteCommand = false
[10:17:50.223] remote.SSH.serverPickPortsFromRange = {}
[10:17:50.224] remote.SSH.serverInstallPath = {}
[10:17:50.225] remote.SSH.permitPtyAllocation = false
[10:17:50.226] remote.SSH.preferredLocalPortRange = undefined
[10:17:50.227] remote.SSH.useCurlAndWgetConfigurationFiles = false
[10:17:50.227] remote.SSH.experimental.chat = true
[10:17:50.228] remote.SSH.experimental.enhancedSessionLogs = true
[10:17:50.229] remote.SSH.httpProxy = {"*":""}
[10:17:50.230] remote.SSH.httpsProxy = {"*":""}
[10:17:50.252] VS Code version: 1.134.0
[10:17:50.253] Remote-SSH version: [email protected]
[10:17:50.254] win32 x64
[10:17:50.260] SSH Resolver called for host: xxx.xxx.xxx.xxx
[10:17:50.261] Setting up SSH remote "xxx.xxx.xxx.xxx"
[10:17:50.274] Using commit id "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" and quality "stable" for server
[10:17:50.275] Extensions to install: 
[10:17:50.290] Install and start server if needed
[10:17:50.299] Checking ssh with "D:\software\bin\ssh.exe -V"
[10:17:50.301] Got error from ssh: spawn D:\software\bin\ssh.exe ENOENT
[10:17:50.302] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[10:17:50.304] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[10:17:50.305] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[10:17:50.307] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[10:17:50.307] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[10:17:50.309] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[10:17:50.310] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[10:17:50.312] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[10:17:50.313] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[10:17:50.367] > OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2

[10:17:50.374] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 2025 "xxx.xxx.xxx.xxx" sh
[10:17:50.376] Generated SSH command: 'type "C:\Users\xxxxx\AppData\Local\Temp\vscode-linux-multi-line-command-xxx.xxx.xxx.xxx-448546194.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 2025 "xxx.xxx.xxx.xxx" sh'
[10:17:50.377] Using connect timeout of 17 seconds
[10:17:50.378] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[10:17:50.380] "install" process failed: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh
[10:17:50.381] Resolver error: Error: Extension 'ms-vscode-remote.remote-ssh' CANNOT use API proposal: terminalRemoteResolver.
Its package.json#enabledApiProposals-property declares: resolvers, tunnels, terminalDataWriteEvent, contribRemoteHelp, contribViewsRemote, telemetry but NOT terminalRemoteResolver.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode-remote.remote-ssh
    at M (file:///d:/software/Microsoft%20VS%20Code/110a328ea5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:520:2336)
    at $Z (file:///d:/software/Microsoft%20VS%20Code/110a328ea5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:674:132878)
    at Object.createTerminal (file:///d:/software/Microsoft%20VS%20Code/110a328ea5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:674:151910)
    at c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:822861
    at new Promise (<anonymous>)
    at D (c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:820656)
    at t.runSshTerminalCommandWithLogin (c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:823939)
    at t.tryInstall (c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:845611)
    at async c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:805393
    at async t.withShowDetailsEvent (c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:808630)
    at async A (c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:801858)
    at async t.resolve (c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:806044)
    at async c:\Users\xxxxx\.vscode\extensions\ms-vscode-remote.remote-ssh-0.126.0\out\extension.js:2:1099342
[10:17:50.388] ------




[10:17:50.390] No hints found in the recent session.
Image

chloceg avatar Aug 26 '26 02:08 chloceg

I forgot to include the details for VSCode.

  • Local Environment: Windows 11 26H2 (26300.9032)
  • Remote Environment: Ubuntu 24.04.4 LTS (I tried to remove vscode related directories and files)
  • Version: v1.134.0 (System Setup)
  • Remote - SSH Version: v0.126.0 (Rollbacked to v0.124.0)

Nevuly avatar Aug 26 '26 02:08 Nevuly

@TinkerNightmare This works for me thanks. i choose version Remote - SSH 0.124. error on 0.126 & after upgrade vscode

ardipermana59 avatar Aug 26 '26 02:08 ardipermana59

Same issue. I'm falling back to version 0.124.0 and it's good now.

Image

hungtrieu07 avatar Aug 26 '26 02:08 hungtrieu07

Same Problem, downgrade to 0.124.0 may solve the problem. vscode: 1.134.0.

Monohydroxides avatar Aug 26 '26 02:08 Monohydroxides

Same bug here. Rolling back to 0.124.0 now.

Image

Lisherex avatar Aug 26 '26 02:08 Lisherex

same

BenLocal avatar Aug 26 '26 02:08 BenLocal

Yes, I've encountered this issue as well. I'm trying to figure out how to roll back the version

fysdm avatar Aug 26 '26 02:08 fysdm

Same here, must return to the previous version via "Install Specific Version..." menu from the drop down arrow next to Uninstall.

abdulhady89 avatar Aug 26 '26 02:08 abdulhady89

same, should roll back to v0.124.0.

Image

wosledon avatar Aug 26 '26 02:08 wosledon

same, should roll back to v0.124.0.

Image

thanks , this can work for now

Gotnhub avatar Aug 26 '26 02:08 Gotnhub

Remote-SSH v0.126.0 is a disaster. It basically killed my ability to connect to ANY of my remote servers.

If you see this error:

" Extension 'ms-vscode-remote.remote-ssh CANNOT use API proposal: terminalRemoteResolver. Its package.json#enabledApiProposals-property declares: resolvvers, tunnels, terminalDataWriteEvent, contrib RemoteHelp, contrib ViewsRemote, telemetry but NOT terminalRemoteResolver. The missing proposal MUST be added and you must start in exteension development mode or use the following command line switch: --enable-propopsed-api ms-vscode-remote.remote"

Here's the easy fix:

Just uninstall it and go back to an older version. Seriously, that's all you need to do.

lrch137 avatar Aug 26 '26 02:08 lrch137

Same issue. Rolling back to 0.124.0 worked.

Dukejung avatar Aug 26 '26 02:08 Dukejung

YO MSFT WTH?

robot-ranger avatar Aug 26 '26 02:08 robot-ranger

This is a fairly annoying issue, for those who cannot just rollback (due to the same terminalRemoteResolver error, use the CLI to uninstall before reinstalling (copied from https://github.com/microsoft/vscode/issues/329735#issuecomment-5419682348)

code --uninstall-extension ms-vscode-remote.remote-ssh --force
code --install-extension [email protected] --force

jonnysoe avatar Aug 26 '26 02:08 jonnysoe