vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Cannot connect to any SSH host after updating to 1.146 (regression, same failure as an earlier release

Open Trival-By opened this issue 3 weeks ago • 3 comments

[Remote-SSH] Cannot connect to any SSH host after updating to 1.146 (regression, same failure as an earlier release)

Post this to: https://github.com/microsoft/vscode-remote-release/issues Replace all <!-- ... --> placeholders with your real data before submitting.


Description

After updating VS Code to 1.146, the Remote - SSH extension can no longer establish a connection to any remote host. Remote development is completely blocked. This looks like a regression: the identical "cannot connect over SSH" failure already occurred once on an earlier release (version <!-- previous affected version, e.g. 1.xxx -->) and was fixed at the time. Since the same symptom has reappeared in 1.146, a shared change may have reintroduced it. This blocks all of our remote development work, so a prompt fix (or a hotfix / confirmed rollback target) would be greatly appreciated.

Steps to Reproduce

  1. Update VS Code from the previous working version to 1.146.
  2. Run Remote-SSH: Connect to Host... from the Command Palette (or code --remote ssh-remote+<host> <path>).
  3. Select a host defined in ~/.ssh/config (or enter user@host).
  4. Observe that the connection fails.

Expected Behavior

The SSH tunnel is established, the VS Code Server is installed/started on the remote host, and the workspace opens normally — exactly as it did before the update.

Actual Behavior

The connection fails.

  • Error popup: <!-- paste the exact error message here -->
  • Hangs indefinitely on "Setting up SSH Host ..." / "Initializing VS Code Server"
  • The window reloads in a loop / "Could not establish connection to "

Environment

Item Value
VS Code version 1.146 (<!-- Help > About: commit hash, date, Electron/Node versions -->)
Remote - SSH extension version <!-- e.g. 0.xxx.x -->
Local OS <!-- e.g. Windows 11 24H2 / macOS 15.x / Ubuntu 24.04 -->
Remote OS / arch <!-- e.g. Ubuntu 22.04 x86_64 -->
SSH client <!-- e.g. OpenSSH_9.x (Windows built-in) -->
Auth / network <!-- key / agent / password; ProxyJump, VPN, bastion, if any -->
Last known working version <!-- e.g. 1.145 -->
Earlier release with the same bug <!-- e.g. 1.xxx -->

Logs

Remote - SSH log (Command Palette > "Remote-SSH: Show Log", or Output panel > "Remote - SSH") ``` [paste the full log here] ```
Window / terminal output (code --verbose) ``` [paste here] ```
### Additional Context - Plain `ssh @` from the same terminal works, so the SSH config, keys, and network are fine; the failure is specific to the VS Code Remote - SSH path. - The same failure occurred on an earlier version (``), and downgrading to `` restores connectivity. - Troubleshooting already attempted (tick what applies): - [ ] `Remote-SSH: Kill VS Code Server on Host...` / removing `~/.vscode-server` on the remote host - [ ] Reinstalling the Remote - SSH extension - [ ] `code --disable-extensions` (with only Remote - SSH enabled) - [ ] Fresh user data dir (`code --user-data-dir `) - Happy to provide `ssh -vvv` traces, verbose logs, or test an Insiders / nightly build with a candidate fix. ### Request Because this is a repeat regression that fully blocks remote workflows, could the team please prioritize a fix in a patch release — or at minimum confirm a safe version to roll back to in the meantime? Thank you in advance for looking into this quickly. ### Checklist - [x] Searched existing issues for duplicates - [x] The failure appeared immediately after updating to 1.146 - [ ] Attached the exact error message and full logs - [ ] Filled in the environment table above - [ ] Confirmed the previous affected version number

Trival-By avatar Nov 11 '26 10:11 Trival-By

Can you share the Remote-SSH log?

Remote - SSH log (Command Palette > "Remote-SSH: Show Log", or Output panel > "Remote - SSH")

roblourens avatar Nov 11 '26 19:11 roblourens

Additional reproducible case: VS Code 1.146.0 fails during VS Code Server SCP transfer

I am experiencing a similar issue after updating to VS Code 1.146.0.

Environment:

  • Local OS: Windows
  • VS Code failing version: 1.146.0
  • Last confirmed working version: 1.145.3
  • SSH client: OpenSSH_for_Windows_9.5p2
  • Remote OS: Ubuntu 26.04
  • Remote SSH server: OpenSSH_10.2p1 Ubuntu-2ubuntu3.8
  • Authentication: SSH certificate using an SSH agent

Steps to reproduce:

  1. Open VS Code 1.146.0.
  2. Connect to a previously working Ubuntu host using Remote-SSH.
  3. Authentication succeeds.
  4. The connection hangs at "Copying VS Code Server to host using SCP".
  5. The remote workspace never opens.

Diagnostic results:

Regular SSH and remote command execution work correctly:

ssh devbox "echo SSH_EXEC_OK"
# SSH_EXEC_OK

echo SCRIPT_OK | ssh -T devbox bash
# SCRIPT_OK

However, standalone SCP and SFTP tests from Windows also fail.

SFTP successfully authenticates, and the server accepts the subsystem request, but the Windows SSH client reports:

Authenticated ... using "publickey".
Sending subsystem: sftp
subsystem request accepted on channel 0
debug3: write ERROR from cb(2):87
debug2: channel 0: write failed
Connection closed

Legacy SCP (scp -O) also fails:

Authenticated ... using "publickey".
Sending command: scp -v -t /tmp/vscode-scp-test.txt
lost connection

Version comparison:

  • VS Code 1.146.0: Remote-SSH fails during VS Code Server installation.
  • VS Code 1.145.3: Remote-SSH connects successfully to the same host.

No server-side SSH configuration changes were required to restore connectivity with 1.145.3.

Additional observation:

The older version may be reusing an already installed VS Code Server, whereas 1.146.0 requires installing a new server version. Since standalone SCP/SFTP operations also fail, I cannot yet determine whether the underlying cause is a VS Code regression, an installation-path change, or a Windows OpenSSH interaction.

Could you investigate whether the VS Code Server installation or transfer mechanism changed in 1.146.0?

I can provide the full Remote-SSH logs if needed.

smkelt avatar Nov 15 '26 20:11 smkelt

你能分享 Remote-SSH 日志吗?

远程 - SSH 日志(命令面板>“Remote-SSH: Show Log”,或输出面板>“Remote - SSH”)

Thanks, after the upgrade, it recovered after 30 minutes.

Trival-By avatar Nov 18 '26 07:11 Trival-By