vscode: Stuck in Downloading VS Code Server for Remote SSH Connection

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Version: 1.82.0 (system setup) Commit: 8b617bd08fd9e3fc94d14adb8d358b56e3f72314 Date: 2023-09-06T22:07:07.438Z Electron: 25.8.0 ElectronBuildId: 23503258 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19045

Steps to Reproduce:

  1. Download newest stable update 1.82.0.
  2. Have literally and Remote - SSH version (v0.106.1 or v0.106.2023090115 tested)

[14:01:53.938] Log Level: 2 [14:01:53.947] VS Code version: 1.82.0 [14:01:53.947] Remote-SSH version: remote-ssh@0.106.2023090115 [14:01:53.947] win32 x64 [14:01:53.955] SSH Resolver called for “ssh-remote+HOSTNAME”, attempt 1 [14:01:53.956] “remote.SSH.useLocalServer”: false [14:01:53.956] “remote.SSH.showLoginTerminal”: false [14:01:53.956] “remote.SSH.remotePlatform”: {“10.244.102.40”:“linux”,“10.244.102.56”:“windows”,“10.244.102.58”:“linux”,“Ubuntu-Server”:“linux”,“10.244.110.20”:“linux”,“HOSTNAME”:“linux”,“HOSTNAME2”:“linux”} [14:01:53.956] “remote.SSH.path”: undefined [14:01:53.959] “remote.SSH.configFile”: undefined [14:01:53.959] “remote.SSH.useFlock”: true [14:01:53.959] “remote.SSH.lockfilesInTmp”: false [14:01:53.959] “remote.SSH.localServerDownload”: auto [14:01:53.959] “remote.SSH.remoteServerListenOnSocket”: false [14:01:53.959] “remote.SSH.showLoginTerminal”: false [14:01:53.960] “remote.SSH.defaultExtensions”: [] [14:01:53.960] “remote.SSH.loglevel”: 2 [14:01:53.960] “remote.SSH.enableDynamicForwarding”: true [14:01:53.960] “remote.SSH.enableRemoteCommand”: false [14:01:53.960] “remote.SSH.serverPickPortsFromRange”: {} [14:01:53.961] “remote.SSH.serverInstallPath”: {} [14:01:53.966] SSH Resolver called for host: HOSTNAME [14:01:53.966] Setting up SSH remote “HOSTNAME” [14:01:53.970] Using commit id “8b617bd08fd9e3fc94d14adb8d358b56e3f72314” and quality “stable” for server [14:01:53.972] Install and start server if needed … [14:01:54.008] Checking ssh with “C:\WINDOWS\System32\OpenSSH\ssh.exe -V” [14:01:54.072] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

[14:01:54.076] Running script with connection command: “C:\WINDOWS\System32\OpenSSH\ssh.exe” -T -D 52885 HOSTNAME bash [14:01:54.078] Terminal shell path: C:\WINDOWS\System32\cmd.exe [14:01:54.486] > ]0;C:\WINDOWS\System32\cmd.exe [14:01:54.486] Got some output, clearing connection timeout [14:01:54.814] > 641239220a33: running

Found existing installation at /home/USERNAME/.vscode-server… Running ssh connection command… /home/USERNAME/.vscode-server/code-8b617bd08fd9 e3fc94d14adb8d358b56e3f72314 command-shell --cli-data-dir /home/USERNAME/.vscode- server/cli --on-port --require-token 21bf6eba62a1 &> “/home/USERNAME/.vscode-serv er/.cli.8b617bd08fd9e3fc94d14adb8d358b56e3f72314.log” < /dev/null printenv: SHELL=/bin/bash LC_ADDRESS=de_AT.UTF-8 LC_NAME=de_AT.UTF-8 LC_MONETARY=de_AT.UTF-8 PWD=/home/USERNAME LOGNAME=USERNAME XDG_SESSION_TYPE=tty MOTD_SHOWN=pam HOME=/home/USERNAME LANG=en_US.UTF-8 LC_PAPER=de_AT.UTF-8 VSCODE_AGENT_FOLDER=/home/USERNAME/.vscode-server SSH_CONNECTION=10.244.144.27 52888 10.244.110.20 22 XDG_SESSION_CLASS=user LC_IDENTIFICATION=de_AT.UTF-8 USER=USERNAME SHLVL=0 LC_TELEPHONE=de_AT.UTF-8 LC_MEASUREMENT=de_AT.UTF-8 XDG_SESSION_ID=74 XDG_RUNTIME_DIR=/run/user/1000 SSH_CLIENT=10.244.144.27 52888 22 LC_TIME=de_AT.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games :/usr/local/games:/snap/bin DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus LC_NUMERIC=de_AT.UTF-8 _=/usr/bin/printenv Removing old logfile at /home/USERNAME/.vscode-server/.cli.8b617bd08fd9e3fc94d14a db8d358b56e3f72314.log Spawned remote CLI: 13120 [14:01:54.830] > Waiting for server log… [14:01:54.846] > [14:01:54.877] > 641239220a33: start SSH_AUTH_SOCK==== DISPLAY==== listeningOn==127.0.0.1:43571== osReleaseId==ubuntu== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==43== 641239220a33: end [14:01:54.877] Received install output: SSH_AUTH_SOCK==== DISPLAY==== listeningOn==127.0.0.1:43571== osReleaseId==ubuntu== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==43==

[14:01:54.877] Remote server is listening on socket 127.0.0.1:43571 [14:01:54.877] Parsed server configuration: {“serverConfiguration”:{“remoteListeningOn”:{“socketPath”:“127.0.0.1:43571”},“osReleaseId”:“ubuntu”,“arch”:“x86_64”,“sshAuthSock”:“”,“display”:“”,“tmpDir”:“/run/user/1000”,“platform”:“linux”},“serverStartTime”:43,“installUnpackCode”:“”} [14:01:54.881] Running script with connection command: “C:\WINDOWS\System32\OpenSSH\ssh.exe” -T -L 127.0.0.1:52889:127.0.0.1:43571 HOSTNAME bash [14:01:54.882] Spawning tunnel with: type “C:\Users\dichler\AppData\Local\Temp\vscode-linux-multi-line-command-HOSTNAME-148522767.sh” | “C:\WINDOWS\System32\OpenSSH\ssh.exe” -T -L 127.0.0.1:52889:127.0.0.1:43571 HOSTNAME bash [14:01:54.882] Terminal shell path: C:\WINDOWS\System32\cmd.exe [14:01:54.897] > [14:01:55.128] > ]0;C:\WINDOWS\System32\cmd.exe [14:01:55.444] >

Connected to SSH Host - Please do not close this terminal [14:01:55.444] Spawned SSH tunnel between local port 52889 and remote target socket 127.0.0.1:43571 [14:01:55.445] Waiting for ssh tunnel to be ready [14:01:55.447] Tunneled socket 127.0.0.1:43571 to local port 52889 [14:01:55.447] Resolved “ssh-remote+HOSTNAME” to “port 52889” [14:01:55.449] Initizing new exec server for ssh-remote+HOSTNAME [14:01:55.449] Resolving exec server at port 52889 [14:01:55.484] Exec server for ssh-remote+HOSTNAME created and cached [14:01:55.490] ------

[14:01:55.510] [server] Checking /home/USERNAME/.vscode-server/cli/servers/Stable-8b617bd08fd9e3fc94d14adb8d358b56e3f72314/log.txt and /home/USERNAME/.vscode-server/cli/servers/Stable-8b617bd08fd9e3fc94d14adb8d358b56e3f72314/pid.txt for a running server… [14:01:55.786] [server] Installing and setting up Visual Studio Code Server…

on remote Server running ubuntu 22.04 LTS /home/USERNAME/.vscode/cli is empty.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 14
  • Comments: 25 (1 by maintainers)

Most upvoted comments

same problem and commit id

Installed https://code.visualstudio.com/updates/v1_81 old version again and reinstalled SSH - Extension as a workaround until they fixed this.

same problem

I am also experiencing this problem.

Installed Pre-Release v0.107.2023090815 and it is now working for me

Try turning off the ‘exec server’ feature:

截屏2023-09-11 19 42 57

Update the Remote-SSH extension to v0.106.2 solved the issue for me.

I had the same issue. Uninstalling 1.82.0 and then installing 1.81.1 worked for me.

Sorry for the trouble and the slow response everyone, we had a few of these going. The exec server mode should now be disabled by default. If you’re still having issues, make sure it’s disabled.

It now works for me too. Thanks!

Problem is solved now. Thanks for the reply @roblourens

Same issue here. Had to revert to 1.81 build to get back remote SSH setup.

same problem