Cannot connect to any SSH host after updating to 1.146 (regression, same failure as an earlier release
[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
- Update VS Code from the previous working version to 1.146.
- Run Remote-SSH: Connect to Host... from the Command Palette (or
code --remote ssh-remote+<host> <path>). - Select a host defined in
~/.ssh/config(or enteruser@host). - 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] ```
Can you share the Remote-SSH log?
Remote - SSH log (Command Palette > "Remote-SSH: Show Log", or Output panel > "Remote - SSH")
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:
- Open VS Code 1.146.0.
- Connect to a previously working Ubuntu host using Remote-SSH.
- Authentication succeeds.
- The connection hangs at "Copying VS Code Server to host using SCP".
- 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.
你能分享 Remote-SSH 日志吗?
远程 - SSH 日志(命令面板>“Remote-SSH: Show Log”,或输出面板>“Remote - SSH”)
Thanks, after the upgrade, it recovered after 30 minutes.