microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.61k stars 275 forks source link

[Remote-SSH Bug]: Resolver error: Error: Failed to download VS Code Server (Server returned 404) #9677

Closed jenish-rudani closed 1 month ago

jenish-rudani commented 5 months ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

No response

Expected Behavior

I am running windows 11 in parallels and trying to open a vscode server on Windows 11 remote from MacOs host.

Steps To Reproduce

Host: Darwin Mac-mini.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64 Remote: CPU0 Apple Silicon ARMv8 (64-bit) Family 8 Model 0 Revision 0 3200 CPU

Open VsCode -> Connect to host -> win11

win11 host defined as, Host win11 10.211.55.4 HostName 10.211.55.4 User atom IdentityFile ~/.ssh/windows11Parallel PasswordAuthentication no

I can ssh into win11 using ssh win11 without any issues.

Remote-SSH Log

Remote-SSH Log

``` [13:23:27.192] Log Level: 1 [13:23:27.197] SSH Resolver called for "ssh-remote+win11", attempt 1 [13:23:27.197] "remote.SSH.useLocalServer": true [13:23:27.197] "remote.SSH.useExecServer": true [13:23:27.197] "remote.SSH.path": undefined [13:23:27.197] "remote.SSH.configFile": undefined [13:23:27.197] "remote.SSH.useFlock": true [13:23:27.197] "remote.SSH.lockfilesInTmp": false [13:23:27.198] "remote.SSH.localServerDownload": always [13:23:27.198] "remote.SSH.remoteServerListenOnSocket": false [13:23:27.198] "remote.SSH.showLoginTerminal": true [13:23:27.198] "remote.SSH.defaultExtensions": [] [13:23:27.198] "remote.SSH.loglevel": 1 [13:23:27.198] "remote.SSH.enableDynamicForwarding": true [13:23:27.198] "remote.SSH.enableRemoteCommand": false [13:23:27.198] "remote.SSH.serverPickPortsFromRange": {} [13:23:27.198] "remote.SSH.serverInstallPath": {} [13:23:27.200] VS Code version: 1.87.2 [13:23:27.201] Remote-SSH version: remote-ssh@0.109.0 [13:23:27.201] darwin arm64 [13:23:27.202] SSH Resolver called for host: win11 [13:23:27.202] Setting up SSH remote "win11" [13:23:27.204] Acquiring local install lock: /var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-remote-ssh-d761b3ab-install.lock [13:23:27.204] Looking for existing server data file at /Users/atom/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d761b3ab-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-es/data.json [13:23:27.205] Using commit id "863d2581ecda6849923a2118d93a088b0745d9d6" and quality "stable" for server [13:23:27.206] Install and start server if needed [13:23:27.207] PATH: /Applications/:/Users/atom/.vcpkg/artifacts/2139c4c6/compilers.arm.armclang/6.21.0/bin:/Users/atom/go/bin:/opt/homebrew/opt/mysql@5.7//bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home//bin:/bin/:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin [13:23:27.207] Checking ssh with "ssh -V" [13:23:27.216] > OpenSSH_9.4p1, LibreSSL 3.3.6 [13:23:27.217] askpass server listening on /var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-ssh-askpass-12f29cf5ec491f35d241694bce047d0f03848202.sock [13:23:27.218] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-ssh-askpass-7579cef0098828e15e545255a520c95da1788295.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","55173","-o","ConnectTimeout=15","win11","powershell"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/atom/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-d761b3ab-863d2581ecda6849923a2118d93a088b0745d9d6-0.109.0-es/data.json"} [13:23:27.218] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.TtJDq267xU/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/th/mkmvgmmn49l6p7qm7hw7mwg80000gn/T/vscode-ssh-askpass-12f29cf5ec491f35d241694bce047d0f03848202.sock"} [13:23:27.218] Spawned 9342 [13:23:27.315] > local-server-1> Running ssh connection command: ssh -v -T -D 55173 -o ConnectTimeout=15 win11 powershell [13:23:27.316] > local-server-1> Spawned ssh, pid=9354 [13:23:27.318] stderr> OpenSSH_9.4p1, LibreSSL 3.3.6 [13:23:27.319] stderr> debug1: Reading configuration data /Users/atom/.ssh/config [13:23:27.319] stderr> debug1: /Users/atom/.ssh/config line 1: Applying options for win11 [13:23:27.319] stderr> debug1: Reading configuration data /etc/ssh/ssh_config [13:23:27.319] stderr> debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files [13:23:27.319] stderr> debug1: /etc/ssh/ssh_config line 54: Applying options for * [13:23:27.319] stderr> debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling [13:23:27.319] stderr> debug1: Connecting to 10.211.55.4 [10.211.55.4] port 22. [13:23:27.320] stderr> debug1: fd 3 clearing O_NONBLOCK [13:23:27.320] stderr> debug1: Connection established. [13:23:27.320] stderr> debug1: identity file /Users/atom/.ssh/windows11Parallel type 3 [13:23:27.320] stderr> debug1: identity file /Users/atom/.ssh/windows11Parallel-cert type -1 [13:23:27.320] stderr> debug1: Local version string SSH-2.0-OpenSSH_9.4 [13:23:27.352] stderr> debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_8.6 [13:23:27.352] stderr> debug1: compat_banner: match: OpenSSH_for_Windows_8.6 pat OpenSSH* compat 0x04000000 [13:23:27.352] stderr> debug1: Authenticating to 10.211.55.4:22 as 'atom' [13:23:27.353] stderr> debug1: load_hostkeys: fopen /Users/atom/.ssh/known_hosts2: No such file or directory [13:23:27.353] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory [13:23:27.353] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory [13:23:27.353] stderr> debug1: SSH2_MSG_KEXINIT sent [13:23:27.371] stderr> debug1: SSH2_MSG_KEXINIT received [13:23:27.371] stderr> debug1: kex: algorithm: curve25519-sha256 [13:23:27.371] stderr> debug1: kex: host key algorithm: ssh-ed25519 [13:23:27.371] stderr> debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none [13:23:27.371] stderr> debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none [13:23:27.372] stderr> debug1: expecting SSH2_MSG_KEX_ECDH_REPLY [13:23:27.375] stderr> debug1: SSH2_MSG_KEX_ECDH_REPLY received [13:23:27.375] stderr> debug1: Server host key: ssh-ed25519 SHA256:3LZO+dz/McEsgVE1bF23aS8pOMqjGp9rJoN5MAMFnyk [13:23:27.376] stderr> debug1: load_hostkeys: fopen /Users/atom/.ssh/known_hosts2: No such file or directory [13:23:27.376] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory [13:23:27.376] stderr> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory [13:23:27.376] stderr> debug1: Host '10.211.55.4' is known and matches the ED25519 host key. [13:23:27.376] stderr> debug1: Found key in /Users/atom/.ssh/known_hosts:24 [13:23:27.378] stderr> debug1: rekey out after 134217728 blocks [13:23:27.378] stderr> debug1: SSH2_MSG_NEWKEYS sent [13:23:27.378] stderr> debug1: expecting SSH2_MSG_NEWKEYS [13:23:27.378] stderr> debug1: SSH2_MSG_NEWKEYS received [13:23:27.378] stderr> debug1: rekey in after 134217728 blocks [13:23:27.382] stderr> debug1: get_agent_identities: bound agent to hostkey [13:23:27.382] stderr> debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities [13:23:27.382] stderr> debug1: Will attempt key: /Users/atom/.ssh/windows11Parallel ED25519 SHA256:LJbaC1xX5X1BNkHFWzL2f0OaZ1ac6LyfN7PUA8lPZYc explicit [13:23:27.382] stderr> debug1: SSH2_MSG_EXT_INFO received [13:23:27.382] stderr> debug1: kex_input_ext_info: server-sig-algs= [13:23:27.430] stderr> debug1: SSH2_MSG_SERVICE_ACCEPT received [13:23:27.446] stderr> debug1: Authentications that can continue: publickey,keyboard-interactive [13:23:27.446] stderr> debug1: Next authentication method: publickey [13:23:27.446] stderr> debug1: Offering public key: /Users/atom/.ssh/windows11Parallel ED25519 SHA256:LJbaC1xX5X1BNkHFWzL2f0OaZ1ac6LyfN7PUA8lPZYc explicit [13:23:27.447] stderr> debug1: Server accepts key: /Users/atom/.ssh/windows11Parallel ED25519 SHA256:LJbaC1xX5X1BNkHFWzL2f0OaZ1ac6LyfN7PUA8lPZYc explicit [13:23:27.479] stderr> Authenticated to 10.211.55.4 ([10.211.55.4]:22) using "publickey". [13:23:27.479] stderr> debug1: Local connections to LOCALHOST:55173 forwarded to remote address socks:0 [13:23:27.479] stderr> debug1: Local forwarding listening on ::1 port 55173. [13:23:27.479] stderr> debug1: channel 0: new port-listener [port listener] (inactive timeout: 0) [13:23:27.480] stderr> debug1: Local forwarding listening on 127.0.0.1 port 55173. [13:23:27.480] stderr> debug1: channel 1: new port-listener [port listener] (inactive timeout: 0) [13:23:27.480] stderr> debug1: channel 2: new session [client-session] (inactive timeout: 0) [13:23:27.480] stderr> debug1: Requesting no-more-sessions@openssh.com [13:23:27.480] stderr> debug1: Entering interactive session. [13:23:27.480] stderr> debug1: pledge: filesystem [13:23:27.501] stderr> debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 [13:23:27.501] stderr> debug1: client_input_hostkeys: searching /Users/atom/.ssh/known_hosts for 10.211.55.4 / (none) [13:23:27.505] stderr> debug1: client_input_hostkeys: searching /Users/atom/.ssh/known_hosts2 for 10.211.55.4 / (none) [13:23:27.505] stderr> debug1: client_input_hostkeys: hostkeys file /Users/atom/.ssh/known_hosts2 does not exist [13:23:27.505] stderr> debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update [13:23:27.505] stderr> debug1: Sending environment. [13:23:27.505] stderr> debug1: Sending command: powershell [13:23:27.506] stderr> debug1: pledge: network [13:23:27.628] > Windows PowerShell > Copyright (C) Microsoft Corporation. All rights reserved. > > Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows [13:23:27.766] > PS C:\Users\atom> [13:23:27.788] > echo 'ready: f94a61bff400' [13:23:27.822] > ready: f94a61bff400 [13:23:27.827] > PS C:\Users\atom> [13:23:27.827] > u [13:23:27.828] > name -rsv [13:23:27.884] Platform: windows [13:23:27.884] Remote command length: 6476/8192 characters [13:23:27.891] > PS C:\Users\atom> [13:23:27.891] > powershell -NoProfile [13:23:27.948] > Windows PowerShell > Copyright (C) Microsoft Corporation. All rights reserved. > > Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows [13:23:28.083] > PS C:\Users\atom> [13:23:28.111] > powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "`$remoteSSHConfigurationScript=[Convert]::To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5TY3JpcHRTdGFja1RyYWNlKSIKfQp0cnkgewokZ2xvYmFsOmFpXyA9IChnY2ltIFdpbjMyX09wZXJhdGluZ1N5c3RlbSkuVmVyc2lvbgp9IGNhdGNoIHsKIkZhaWxlZCB0byBmaW5kIFdpbmRvd3MgdmVyc2lvbiAtICQoJF8uVG9TdHJpbmcoKSkiCiRnbG9iYWw6YWlfID0gInVua25vd24iCn0KcHJpbnRSZXN1bHQKI [13:23:28.116] > iRwaWQsIHdhdGNoaW5nICRzc2hkUElEIgp3aGlsZSAoJFRydWUpIHsKYl8Kc2xlZXAgMzAKfQp9CiJmOTRhNjFiZmY0MDA6IHJlc3VtZUxvZyIKbWFpbgo=')))); powershell -ExecutionPolicy Unrestr [13:23:28.116] > i [13:23:28.116] > cted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript" [13:23:28.396] > f94a61bff400: running > f94a61bff400: pauseLog [13:23:28.456] > f94a61bff400: resumeLog [13:23:28.721] > Looking for existing CLI in C:\Users\atom\.vscode-server [13:23:28.724] > Trigger local server download [13:23:28.724] > f94a61bff400:trigger_server_download [13:23:28.725] > artifact==cli-win32== [13:23:28.725] > > destFolder==C:\Users\atom\.vscode-server== > destFolder2==/vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip== > f94a61bff400:trigger_server_download_end > Waiting for client to transfer server archive... > Waiting for C:\Users\atom\.vscode-server\vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip.done and vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip to exist [13:23:28.725] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\\Users\\atom\\.vscode-server/vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip"} [13:23:28.725] Downloading VS Code server locally... [13:23:28.819] Terminating local server [13:23:28.821] Resolver error: Error: Failed to download VS Code Server (Server returned 404) at g.Create (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:499734) at /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:550334 at async t.downloadAndCopyToHost (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:549834) at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:557733 at async e (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:557848) at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:580094 at async t.withShowDetailsEvent (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:583753) at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:554890 at async T (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:552941) at async t.resolveWithLocalServer (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:554430) at async k (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:577311) at async t.resolve (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:581124) at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:847283 [13:23:28.823] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"1","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"1","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"LocalDownloadFailed","exitCodeLabel":""},"measures":{"resolveAttempts":1,"isExecServer":0,"timing.totalResolveTime":1623,"timing.preSshTime":21,"timing.establishSshTime":1178}} [13:23:28.824] ------ [13:23:28.827] Local server exit: 15 ```

Anything else?

No response

binhpht commented 5 months ago

Hi, I also have the same problem, I can ssh connect to the host from a client , both machines installing window 11. Howerver, this "Resolver error: Error: Failed to download VS Code Server (Server returned 404)" still happens, I have tried many efforts to solve it but still could not move on.

roblourens commented 5 months ago

It looks like we detected the remote as 32-bit windows, is it actually 32-bit windows or a 32-bit SSH server? It's failing to download the 32-bit server because we don't support that platform anymore.

roblourens commented 5 months ago

If that's wrong, please connect to that remote and check $env:PROCESSOR_ARCHITECTURE

binhpht commented 5 months ago

Both of the machines I am currently using are running 64-bit Windows 11. The host is powered by an ARM64 processor, while the client uses an Intel 64-bit processor (AMD64). The error in the terminal suggests that it attempted to download the 32-bit version of the VS Code server:

[19:15:09.664] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\Users\admin\.vscode-server/vscode-cli-863d2581ecda6849923a2118d93a088b0745d9d6.zip"} [19:15:09.665] Downloading VS Code server locally... [19:15:09.682] > [19:15:09.990] Resolver error: Error: Failed to download VS Code Server (Server returned 404)

When I tried to remote using host machine, using the same machine to remote vs code for testing, it works well.

jenish-rudani commented 5 months ago

The remote is ARM64 actually.

PS C:\Users\atom> $env:PROCESSOR_ARCHITECTURE returns ARM64

binhpht commented 5 months ago

I managed to fix by using older version 1.85.2 instead of the latest version.

invokablegmbh commented 5 months ago

Same here.

Logs say: https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable: 2024-03-24 05:48:24 ERROR 404: Not Found.

pcherkashin commented 5 months ago

Same here. Trying to connect to Ubuntu 22.04 LTS x64 https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable

bvv400 commented 5 months ago

Same here. Trying to connect to CentOS/7 Resolver error: Error: Failed to download VS Code Server (Server returned 404) Version 1.87,2

On VSC-insider the remote vscode server was installed correctly. Version 1.88.0-insider

lomalkin commented 5 months ago

After updating VSCode to 1.87.2, I can't setup NEW remote SSH connection due to error while downloading vscode-server (Destination OS is Ubuntu @ x86_64):

[14:56:51.846] > Linux 6.5.0-21-generic #21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb  9 13:32:52 UTC 2
[14:56:51.846] Platform: linux
[14:56:51.851] > /bin/bash
[14:56:51.851] Shell: bash
[14:56:51.851] Creating bash subshell inside "bash"
[14:56:51.864] > bash version:  5.1.16(1)-release
[14:56:51.879] > 0541393a5b34: running
[14:56:51.907] > Acquiring lock on /home/user/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/vscode-remote-lock.user.863d2581ecda6849923a2118d93a088b0745d9d6
[14:56:51.912] > Installing to /home/user/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6...
[14:56:51.915] > 0541393a5b34%%1%%
[14:56:51.920] > Downloading with wget
[14:56:52.152] > wget download failed
> https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable: 2024-03-25 17:56:52 ERROR 404: Not Found.

Try to follow the broken link from another PC:

% wget https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable; echo $?
--2024-03-25 15:06:43--  https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable
Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.246.45, 13.107.213.45
Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.246.45|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-03-25 15:06:43 ERROR 404: Not Found.

8

Please note that the previously established SSH remote connection to another PC, which already has the vscode-server downloaded, continues to function properly after the update as well.

ecker-deshaw commented 5 months ago

I'm seeing this as well connecting from 64-bit Windows 10 PC to a 64-bit Intel RedHat 8 Linux server.

2jiwon commented 5 months ago

I am having the same issue. any luck without downgrading to 1.85 version? !_!

imsujinpark commented 5 months ago

After updating to v.1.87.2, I had a similar issue. I was using the extension "Remote - SSH' on the pre-release version.

I switched it to the release version (v.0.109.0), and it resolved the problem for me.

2jiwon commented 5 months ago

@imsujinpark You saved my day! Yes switched to the release version solved the problem, thank you!

Mighty-Monarch commented 5 months ago

Thanks @imsujinpark! Switching to the release version was the trick.

ryan-l-robinson commented 5 months ago

My error also resolved by switching down to the release version of the Remote - SSH extension. Thanks!

hnyls2002 commented 5 months ago

I came across this problem too.

When the downloading link is with server-linux-x64, it goes well.

wget https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-x64/stable

But on my AWS remote machine, the download link is with server-linux-legacy-x64

wget https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable

And the result goes

--2024-03-27 12:18:40--  https://update.code.visualstudio.com/commit:863d2581ecda6849923a2118d93a088b0745d9d6/server-linux-legacy-x64/stable
Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.246.40, 13.107.213.40, 2620:1ec:bdf::40, ...
Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.246.40|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-03-27 12:18:40 ERROR 404: Not Found.

That is so weird, I think this is where the problem lies.

bvv400 commented 5 months ago

Same here. Trying to connect to CentOS/7 Resolver error: Error: Failed to download VS Code Server (Server returned 404) Version 1.87,2

On VSC-insider the remote vscode server was installed correctly. Version 1.88.0-insider

error also resolved by switching down to the release version of the Remote - SSH extension. Thanks!

FanhaiLu1 commented 5 months ago

Thanks @imsujinpark! I got same issues, after switching it to the release version (v.0.109.0), I can connect my vms.

InImpasse commented 5 months ago

@imsujinpark I also encountered a 404 issue. After switching the Remote-SSH plug-in to the release version, the issue was solved. Thanks! image

ThreeE999 commented 5 months ago

切换至发布版本可以解决404问题。我记得我一直是发布版本,什么时候变成了预发布版本的?

binhpht commented 5 months ago

@roblourens I still have this issue, the Vs code usually automatically update the latest version and I could not remote SSH. Switch to the release version for SSH extension does not fix the issue for me. I also have tried to use VS code insider but it does not work. The processor of the host machine is ARM64. Thanks

BeastyZ commented 5 months ago

After updating to v.1.87.2, I had a similar issue. I was using the extension "Remote - SSH' on the pre-release version.

I switched it to the release version (v.0.109.0), and it resolved the problem for me.

You are right! Thanks!

RomainFallet commented 5 months ago

Same error here on version 0.110.1 of Remote - SSH. Switching to release version is not fixing the issue. Host is macOS 14.4.1 with Apple M2, guest is Windows 11 Pro ARM 23H2.

[17:41:24.909] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\\Users\\romain_fallet\\.vscode-server\\.vscode-server/vscode-cli-5c3e652f63e798a5ac2f31ffd0d863669328dc4c.zip"}
[17:41:24.909] Downloading VS Code server locally...
[17:41:25.272] Terminating local server
[17:41:25.278] Resolver error: Error: Échec du téléchargement de VS Code Server (Server returned 404)
binhpht commented 5 months ago

@RomainFallet i also have the same, the only solution i found is downgrade your vs code to 1.85

jenish-rudani commented 5 months ago

@roblourens

Please let us know if you need extensive logs/information on this issue which better helps you debug and troubleshoot this.

Looking forward to hearing your feedback on this matter.

RomainFallet commented 5 months ago

@RomainFallet i also have the same, the only solution i found is downgrade your vs code to 1.85

Thanks, downgrading to VSCode 1.85 solved the problem for me too!

binhpht commented 5 months ago

@RomainFallet Rememeber to turn off auto update

andrjohns commented 4 months ago

This is still an issue with vscode 1.88 and both release and pre-release remote-ssh extension (macos arm64 host, windows arm64 remote).

Downgrading to vscode v1.85 is the only thing that worked

binhpht commented 4 months ago

@andrjohns I managed to work normally with version 1.88. I remote to the window 11, Arm 64

RomainFallet commented 4 months ago

I have some coworkers using RemoteSSH from Apple Silicon to Windows 11 ARM inside UTM virtual machine without any issue. I still have the issue from Apple Silicon to Windows 11 ARM inside Parallels Desktop virtual machine. Is it possible that the proc architecture detection changed and now failed in some virtual machine environments?

ssoudan commented 4 months ago

I had the issue with Windows 11 ARM inside Parallels too. I solved it by switching to PowerShell 7 - for some reason it is reporting AMD64 as PROCESSOR_ARCHITECTURE instead of the default version of PowerShell that says ARM64.

To make PowerShell 7 the default shell for SSH:

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" `
                 -Name DefaultShell `
                 -Value "c:/progra~1/powershell/7/pwsh.exe" `
                 -PropertyType String `
                 -Force

Until the installer works with ARM64 this will do for me.

(using v0.110.1 of ms-vscode-remote.remote-ssh)

vcsjones commented 4 months ago

This has more or less broken my ability to do Remote Development where the target machine is Windows ARM64.

Steps to reproduce

  1. Install OpenSSH on Windows ARM64. You can get this from https://github.com/PowerShell/Win32-OpenSSH. OpenSSH-ARM64-vm.m.r.p.msi installer.
  2. Note that the SSHD agent is running as ARM64 in the Task manager.
  3. For good measure, SSH in to the Windows machine. $env:PROCESSOR_ARCHITECTURE outputs ARM64
  4. Try to connect to it with the "Remote - SSH" extension.
  5. Connection succeeds, but the logs indicate that while download ing the VS Code Server, a 404 error is produced.

This appears to be a bug in the detection logic for what platform you are using.

When the Remote extension initially makes a connection to a remote host, it runs a base64 encoded PowerShell script, as seen here in the logs.

image

The fully decode script is here, but notably these lines:

$p=$env:PROCESSOR_ARCHITECTURE
$arch=if (($p -eq 'AMD64') -or ($p -eq 'IA64')) { 'x64' } else { 'ia32' }

This handles the AMD64 and IA64 architecture (why IA64, I have no idea) but not ARM64. Since ARM64 is not handled, it goes in to the else resulting in "ia32", which is x86.

That ultimately ends up assembling a download URL for 32-bit Intel. Therefore the architecture detection script incorrectly identifies ARM64 as "ia32".

I don't know if the remote agent has an ARM64 build at all, but I think this script could be tweaked to map ARM64 -> "x64" and use the AMD64 server since Windows is able to do WOW for AMD64 on ARM64. Though a native ARM64 binary would be best.


Update

I patched my VS Code extension so that the platform detection script looked like this:

$arch=if (($p -eq 'AMD64') -or ($p -eq 'IA64') -or ($p -eq 'ARM64')) { 'x64' } else { 'ia32' }

And it works fine now. Obviously I will lose this fix when the extension updates, but it proves that the fix is, at least on the surface, pretty trivial.

msalandro commented 4 months ago

While the workaround succeeds in installing the windows-x64 version of the server on a windows-arm64 machine, there are still some problems. For example, if you are using the C# Dev Kit, the extension is unable to load because of an architecture mismatch between the dotnet host architecture (arm64) and the architecture the C# Dev Kit is expecting (x64).

Please consider making vs code server available natively for windows-arm64.

kobinabrandon commented 3 months ago

I'm having the same issue connecting to an AWS EC2 instance of ubuntu. Following the success of the SSH connection, the output reads:

[21:40:50.421] > Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-1008-aws x86_64)

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

Enable ESM Apps to receive additional future security updates. See https://ubuntu.com/esm or run: sudo pro status

The list of available updates is more than a week old. To check for new updates run: sudo apt update [21:40:50.729] > ready: 5491933e0724 [21:40:51.035] > Linux 6.8.0-1008-aws #8-Ubuntu SMP Sat Apr 20 00:46:25 UTC 2024 [21:40:51.036] Platform: linux [21:40:51.341] > /bin/bash [21:40:51.342] Shell: bash [21:40:51.343] Creating bash subshell inside "bash" [21:40:51.584] > bash version: 5.2.21(1)-release [21:40:51.635] > bash version: 5.2.21(1)-release [21:40:51.686] > bash version: 5.2.21(1)-release [21:40:51.736] > bash version: 5.2.21(1)-release [21:40:51.786] > bash version: 5.2.21(1)-release [21:40:51.853] > 5491933e0724: running [21:40:51.862] > Installing to /home/ubuntu/.vscodium-server... [21:40:51.865] > 5491933e0724%%1%% [21:40:51.867] > Downloading with wget [21:40:52.160] > wget download failed https://update.code.visualstudio.com/commit:a045dcfceda27f896936bfd8cbf524f6a93a2f46/cli-alpine-x64/stable: 2024-05-24 21:40:51 ERROR 404: Not Found. printenv: [21:40:52.162] > SHELL=/bin/bash PWD=/home/ubuntu/.vscodium-server LOGNAME=ubuntu XDG_SESSION_TYPE=tty HOME=/home/ubuntu LANG=C.UTF-8 VSCODE_AGENT_FOLDER=/home/ubuntu/.vscodium-server SSH_CONNECTION=102.223.169.215 32562 172.31.25.215 22 XDG_SESSION_CLASS=user USER=ubuntu SHLVL=2 XDG_SESSION_ID=22 XDG_RUNTIME_DIR=/run/user/1000 SSH_CLIENT=102.223.169.215 32562 22 XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin DBUS_SESSION_BUSADDRESS=unix:path=/run/user/1000/bus OLDPWD=/home/ubuntu =/usr/bin/printenv [21:40:52.164] > Trigger local server download 5491933e0724:trigger_server_download artifact==cli-alpine-x64== destFolder==/home/ubuntu/.vscodium-server== destFolder2==/vscode-cli-a045dcfceda27f896936bfd8cbf524f6a93a2f46.tar.gz== 5491933e0724:trigger_server_download_end Waiting for client to transfer server archive... Waiting for /home/ubuntu/.vscodium-server/vscode-cli-a045dcfceda27f896936bfd8cbf524f6a93a2f46.tar.gz.done and vscode-server.tar.gz to exist

[21:40:52.167] Got request to download on client for {"artifact":"cli-alpine-x64","destPath":"/home/ubuntu/.vscodium-server/vscode-cli-a045dcfceda27f896936bfd8cbf524f6a93a2f46.tar.gz"} [21:40:52.169] Downloading VS Code server locally... [21:40:55.197] >
[21:40:58.099] >
[21:40:59.032] Terminating local server [21:40:59.041] Resolver error: Error: Failed to download VS Code Server (Server returned 404)

juanjgacosta commented 3 months ago

Hi, I was having the same issue connecting to an UTM Windows 11 virtual machine from a MacBook Pro with M2 Max chip and Sonoma 14.5 SO version with vscode version 1.89 and remote ssh extension version 0.108.0. After the latest vscode update to version 1.90, the situation got worse because I was no longer able to connect vis ssh to linux machines. The solution, after a lot of wasted time, was to downgrade to vscode 1.86.2 and the remote ssh extension to the version 0.107.1.

mayuyuace commented 3 months ago

I encountered the same problem. Then I uninstalled remote-ssh and reinstalled it, and the problem was solved. I think closing remote connection before closing VS code can avoid this problem.

roblourens commented 3 months ago

Sorry for the slow response. There are multiple issues described here but I'll stick to the one related to Windows ARM because I think that's the original.

We don't publish a server for windows ARM. Is anyone in that situation, but it was working previously? Does that mean that it was previously downloading the x64 server and running it on ARM in some emulation mode? Can someone share a log from that scenario with an older working VS Code? I'm not aware of any changes and don't have a Windows ARM machine to test with.

jenish-rudani commented 3 months ago

Yes.

The windows arm in question is a parallels windows vm on M2 Mac. I will try to reproduce the previous setup which was working fine. What kind of logs are you looking for, anything specific?

roblourens commented 3 months ago

The log from the "Remote - SSH" output channel

image

vcsjones commented 3 months ago

@roblourens

We don't publish a server for windows ARM. Is anyone in that situation, but it was working previously?

Yes. Windows on ARM (ARM64) used to download the x86 installer and run it in an emulation mode.

It's failing to download the 32-bit server because we don't support that platform anymore.

My assumption here is that since the 32-bit (x86) installer is not supported, the ARM64 download is 404ing when trying to download the x86 installer. I provided a detailed explanation above on why and how the ARM used to use the x86 installer.

juanjgacosta commented 3 months ago

@roblourens follows the log from Mac M2 to an UTM virtual machine with windows 11 (this connection broke since vscode v1.89 and Remore SSH extension v0.108.0):

[06:35:29.081] Log Level: 2 [06:35:29.082] SSH Resolver called for "ssh-remote+192.168.0.154", attempt 1 [06:35:29.082] "remote.SSH.useLocalServer": true [06:35:29.082] "remote.SSH.useExecServer": false [06:35:29.082] "remote.SSH.path": undefined [06:35:29.082] "remote.SSH.configFile": undefined [06:35:29.082] "remote.SSH.useFlock": true [06:35:29.083] "remote.SSH.lockfilesInTmp": false [06:35:29.083] "remote.SSH.localServerDownload": auto [06:35:29.083] "remote.SSH.remoteServerListenOnSocket": false [06:35:29.083] "remote.SSH.showLoginTerminal": false [06:35:29.083] "remote.SSH.defaultExtensions": [] [06:35:29.083] "remote.SSH.loglevel": 2 [06:35:29.083] "remote.SSH.enableDynamicForwarding": true [06:35:29.083] "remote.SSH.enableRemoteCommand": false [06:35:29.083] "remote.SSH.serverPickPortsFromRange": {} [06:35:29.083] "remote.SSH.serverInstallPath": {} [06:35:29.084] VS Code version: 1.86.2 [06:35:29.084] Remote-SSH version: remote-ssh@0.107.1 [06:35:29.084] darwin arm64 [06:35:29.085] SSH Resolver called for host: 192.168.0.154 [06:35:29.085] Setting up SSH remote "192.168.0.154" [06:35:29.086] Acquiring local install lock: /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-remote-ssh-b3c819e2-install.lock [06:35:29.086] Looking for existing server data file at /Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b3c819e2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-tr/data.json [06:35:29.086] Using commit id "903b1e9d8990623e3d7da1df3d33db3e42d80eda" and quality "stable" for server [06:35:29.088] Install and start server if needed [06:35:29.089] PATH: /Users/juan/.pyenv/shims:/Applications/ArmGNUToolchain/12.3.rel1/arm-none-eabi/bin:/Users/juan/.nvm/versions/node/v18.16.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin [06:35:29.089] Checking ssh with "ssh -V" [06:35:29.094] > OpenSSH_9.6p1, LibreSSL 3.3.6

[06:35:29.094] askpass server listening on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-361f38416c9799ab6cc2bf5eaa8301352a4d562d.sock [06:35:29.094] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-4338fe68bc2debe46ed342231ad73ed895f2cd5e.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","55919","-o","ConnectTimeout=15","192.168.0.154","powershell"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b3c819e2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-tr/data.json"} [06:35:29.094] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.k1fOUVcnho/Listeners","SHELL":"/bin/bash","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-361f38416c9799ab6cc2bf5eaa8301352a4d562d.sock"} [06:35:29.095] Spawned 84269 [06:35:29.179] > local-server-1> Running ssh connection command: "-v -T -D 55919 -o ConnectTimeout=15 192.168.0.154 powershell" [06:35:29.181] > local-server-1> Spawned ssh, pid=84277 [06:35:29.184] stderr> OpenSSH9.6p1, LibreSSL 3.3.6 [06:35:29.270] stderr> debug1: Server host key: ssh-ed25519 SHA256:xdFDJTtIHzs3RUvYkfQ2XZAKPmEDcFvvOlMOuXUEH7Q [06:35:29.488] Got askpass request: {"request":"--ms-enable-electron-run-as-node juanw@192.168.0.154's password:"} [06:35:29.488] Showing password prompt [06:35:29.488] Listening for interwindow password on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-95ee740d952bfea5bbaacff27641c0a59400dcf0.sock [06:35:29.488] Writing password prompt to globalState [06:35:50.817] Got password response [06:35:50.818] Interactor gave response: *** [06:35:50.819] Cleaning up other-window auth server [06:35:50.878] stderr> Authenticated to 192.168.0.154 ([192.168.0.154]:22) using "password". [06:35:51.261] > O Windows PowerShell

Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Instale o PowerShell mais recente para obter novos recursos e aprimoramentos! https://aka.ms/PSWindows [06:35:51.420] > PS C:\Users\juanw> [06:35:51.449] > echo 'ready: 6cc5e672b5f8' [06:35:51.570] > ready: 6cc5e672b5f8 [06:35:51.575] > PS C:\Users\juanw> [06:35:51.576] > uname -rsv [06:35:51.629] Platform: windows [06:35:51.629] Remote command length: 8228/8192 characters [06:35:51.630] stderr>
[06:35:51.634] > PS C:\Users\juanw_> [06:35:51.635] > powershell -NoProfile [06:35:51.696] > O Windows PowerShell Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Instale o PowerShell mais recente para obter novos recursos e aprimoramentos! https://aka.ms/PSWindows [06:35:51.788] > PS C:\Users\juanw_> [06:35:51.811] > powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -Command "`$remoteSSHConfiguratio

[06:35:51.812] > 0b2tlbiIKJHNEaXI9IiRvX1xiaW5cJG5fIgokc0ZpbGU9IiRvX1xiaW5cJG5fXGJpblxjb2RlLXNlcnZlci5jbWQiCiRwXz0nc3RhYmxlJwokcV89Ii0tdGVsZW1ldHJ5LWxldmVsIG9mZiIKJGV4dHM9IiIKJGdfPSRUcnVlCiRoXz0kRmFsc2UKJGdsb2JhbDpyXyA9ICRGYWxzZQokZ2xvYmFsOnNfID0gJycKJGdsb2JhbDpqXyA9ICcnCiRnbG9iYWw6a18gPSAnJwokZ2xvYmFsOmxfID [06:35:51.812] > 0gJycKJGdsb2JhbDptXyA9ICcnCiRnbG9iYWw6YWpfID0gJycKZnVuY3Rpb24gYW9fIHsKImxpc3RlbmluZ09uPT0kcG9ydD09Igoib3NSZWxlYXNlSWQ9PXdpbmRvd3M9PSIKIm9zVmVyc2lvbj09JGFoXz09IgoiYXJjaD09JGFyY2g9PSIKInBsYXRmb3JtPT13aW5kb3dzPT0iCiJ1bnBhY2tSZXN1bHQ9PSRzXz09IgoiZGlkTG9jYWxEb3dubG9hZD09JHJfPT0iCiJkb3dubG9hZFRpbWU9PSRqXz09IgoiaW5zdGFsbFRpbWU9PSRrXz09IgoiZXh0SW5zdGFsbFRpbWU9PSRsXz09Igoic2VydmVyU3RhcnRUaW1lPT0kbV89PSIKfQpmdW5jdGl [06:35:51.813] > vbiB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d2hpbGUgKCRUcnVlKSB7CmJfCnNsZWVwIDMwCn0KfQoiNmNjNWU2NzJiNWY4OiByZXN1bWVMb2ciCm1haW4K')))); powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript" [06:35:52.137] > 6cc5e672b5f8: running 6cc5e672b5f8: pauseLog [06:35:52.202] > 6cc5e672b5f8: resumeLog [06:35:52.600] > Acquiring lock on C:\Users\juanw.vscode-server\bin\903b1e9d8990623e3d7da1df3d33db3e42d80eda\vscode-remote-lock.903b1e9d8990623e3d7da1df3d33db3e42d80eda [06:35:52.603] > Looking for existing server in C:\Users\juanw.vscode-server\bin\903b1e9d8990623e3d7da1df3d33db3e42d80eda [06:35:52.605] > Found installed server [06:35:52.641] > [06:35:52.641] > Diret�rio: C:\Users\juanw_.vscode-server

[06:35:52.643] > Mode LastWriteTime Length Name
[06:35:52.644] > ---- ------------- ------ ----
[06:35:52.645] > -a---- 15/06/2024 06:35 0 .903b1e9d8990623e3d7da1df3d33db3e42d80eda.token
[06:35:52.658] > Processados com sucesso 1 arquivos; falha no processamento de 0 arquivos [06:35:52.665] > Processados com sucesso 1 arquivos; falha no processamento de 0 arquivos [06:35:52.673] > Processados com sucesso 1 arquivos; falha no processamento de 0 arquivos [06:35:52.680] > Processados com sucesso 1 arquivos; falha no processamento de 0 arquivos [06:35:52.684] > Starting server: & 'C:\Users\juanw.vscode-server\bin\903b1e9d8990623e3d7da1df3d33db3e42d80eda\bin\code-server.cmd' --start-server --host=127.0.0.1 --accept-server-license-terms --enable-remote-auto-shutdown --port=0 --connection-token-file 'C:\Users\juanw.vscode-server.903b1e9d8990623e3d7da1df3d33db3e42d80eda.token' --telemetry-level off *> 'C:\Users\juanw_.vscode-server.903b1e9d8990623e3d7da1df3d33db3e42d80eda.log' [06:35:53.226] > 6cc5e672b5f8: start [06:35:53.227] > SSH_AUTH_SOCK==== listeningOn==53334== osReleaseId==windows== osVersion==10.0.22631== arch==ia32== platform==windows== unpackResult==== [06:35:53.228] > didLocalDownload==False== downloadTime==== installTime==== extInstallTime==== [06:35:53.229] > serverStartTime==116== connectionToken==a111aa11-111a-1111-aaa1-1a111a111111== 6cc5e672b5f8: end [06:35:53.230] Received install output: SSH_AUTH_SOCK==== listeningOn==53334== osReleaseId==windows== osVersion==10.0.22631== arch==ia32== platform==windows== unpackResult====didLocalDownload==False== downloadTime==== installTime==== extInstallTime====serverStartTime==116== connectionToken==a111aa11-111a-1111-aaa1-1a111a111111==

[06:35:53.230] Remote server is listening on port 53334 [06:35:53.230] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":53334},"osReleaseId":"windows","arch":"ia32","sshAuthSock":"","platform":"windows","connectionToken":"a111aa11-111a-1111-aaa1-1a111a111111"},"serverStartTime":116,"installUnpackCode":""} [06:35:53.231] Persisting server connection details to /Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b3c819e2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-tr/data.json [06:35:53.232] Starting forwarding server. local port 55922 -> socksPort 55919 -> remotePort 53334 [06:35:53.232] Forwarding server listening on port 55922 [06:35:53.233] Waiting for ssh tunnel to be ready [06:35:53.233] [Forwarding server port 55922] Got connection 0 [06:35:53.234] Tunneled port 53334 to local port 55922 [06:35:53.234] Resolved "ssh-remote+192.168.0.154" to "port 55922" [06:35:53.236] ------

[06:35:53.242] [Forwarding server port 55922] Got connection 1 [06:35:53.652] [Forwarding server port 55922] Got connection 2 [06:35:54.475] Opening exec server for ssh-remote+192.168.0.154 [06:35:54.477] Initizing new exec server for ssh-remote+192.168.0.154 [06:35:54.488] Acquiring local install lock: /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-remote-ssh-b3c819e2-install.lock [06:35:54.490] Looking for existing server data file at /Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b3c819e2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-es/data.json [06:35:54.490] Using commit id "903b1e9d8990623e3d7da1df3d33db3e42d80eda" and quality "stable" for server [06:35:54.491] Install and start server if needed [06:35:54.494] askpass server listening on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-5d6764e2c0b2c736b34694a6480ba48974e83f6f.sock [06:35:54.495] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-85d146b55d40dda874a359e71a57e005c94bad02.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","55929","-o","ConnectTimeout=15","192.168.0.154","powershell"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-b3c819e2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-es/data.json"} [06:35:54.495] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.k1fOUVcnho/Listeners","SHELL":"/bin/bash","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-5d6764e2c0b2c736b34694a6480ba48974e83f6f.sock"} [06:35:54.495] Spawned 85308 [06:35:54.590] > local-server-2> Running ssh connection command: "-v -T -D 55929 -o ConnectTimeout=15 192.168.0.154 powershell" [06:35:54.591] > local-server-2> Spawned ssh, pid=85316 [06:35:54.594] stderr> OpenSSH9.6p1, LibreSSL 3.3.6 [06:35:54.718] stderr> debug1: Server host key: ssh-ed25519 SHA256:xdFDJTtIHzs3RUvYkfQ2XZAKPmEDcFvvOlMOuXUEH7Q [06:35:54.911] Got askpass request: {"request":"--ms-enable-electron-run-as-node juanw@192.168.0.154's password:"} [06:35:54.911] Showing password prompt [06:35:54.912] Listening for interwindow password on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-fafe9e7d124a6fbd4020ff2faac60f0a2c120b7f.sock [06:35:54.912] Writing password prompt to globalState [06:36:03.930] Got password response [06:36:03.931] Interactor gave response: *** [06:36:03.932] Cleaning up other-window auth server [06:36:03.974] stderr> Authenticated to 192.168.0.154 ([192.168.0.154]:22) using "password". [06:36:04.110] > O Windows PowerShell

Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Instale o PowerShell mais recente para obter novos recursos e aprimoramentos! https://aka.ms/PSWindows [06:36:04.203] > PS C:\Users\juanw> [06:36:04.226] > echo 'ready: 73b22a03d0c6' [06:36:04.253] > ready: 73b22a03d0c6 [06:36:04.259] > PS C:\Users\juanw> [06:36:04.259] > uname -rsv [06:36:04.297] Platform: windows [06:36:04.298] Remote command length: 6412/8192 characters [06:36:04.298] stderr> Verifique a grafia do nome ou, se um caminho tiver sido inclu�do, veja se o caminho est� correto e tente novamente. [06:36:04.298] stderr> No linha:1 caractere:1 [06:36:04.298] stderr> + uname -rsv [06:36:04.299] stderr> + ~ [06:36:04.299] stderr> + CategoryInfo : ObjectNotFound: (uname:String) [], CommandNotFoundException [06:36:04.299] stderr> + FullyQualifiedErrorId : CommandNotFoundException [06:36:04.299] stderr>
[06:36:04.305] > PS C:\Users\juanw_> [06:36:04.306] > powershell -NoProfile [06:36:04.369] > O Windows PowerShell Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Instale o PowerShell mais recente para obter novos recursos e aprimoramentos! https://aka.ms/PSWindows [06:36:04.471] > PS C:\Users\juanw_>

[06:36:04.492] > 5jZT0nU2lsZW50bHlDb250aW51ZScKJHJfPSc5MDNiMWU5ZDg5OTA2MjNlM2Q3ZGExZGYzZDMzZGIzZTQyZDgwZ [06:36:04.492] > WRhJwokcD0kZW52OlBST0NFU1NPUl9BUkNISVRFQ1RVUkUKJGFyY2g9aWYgKCgkcCAtZXEgJ0FNRDY0JykgLW9yICgkcCAtZXEgJ0lBNjQnKSkgeyAneDY0JyB9IGVsc2UgeyAnaWEzMicgfQokc189KEpvaW4tUGF0aCAoUm [06:36:04.493] > Vzb2x2ZS1QYXRoIH4pICcudnNjb2RlLXNlcnZlcicpCiRjbGlEYXRhRGlyPShKb2luLVBhdGggIiRzXyIgJ2NsaScpCi [06:36:04.493] > RlbnY6VlNDT0RFX0FHRU5UX0ZPTERFUj0kc18KJGxvZz1OZXctVGVtcG9yYXJ5RmlsZQokY189ImNvZGUiCiRkXz0iJGNfLmV4ZSIKJGVfPSIkY18tJHJfLmV4ZSIKJGZfPSIkc19cJGVfIgokdF89J3N0YWJsZScKJGtfPSRUcnVlCiRsXz0kRmFsc2UKJGdsb2JhbDp2XyA9ICRGYWxzZQokZ2xvYmFsOndfID0gJycKJGdsb2JhbDpuXyA9ICcnCiRnbG9iYWw6b18gPSAnJwokZ2xvYmFsOnBfID0gJycKJGdsb2JhbDpxXyA9ICcnCmZ1bmN0aW9uIGFrXyB7CiJsaXN0ZW5pbmdPbj09JHBvcnQ9PSIKIm9zUmVsZWFzZUlkPT13aW5kb3dzPT0iCiJvc1ZlcnNpb249PSRhaV89PSIKImFyY2g9PSRhcmNoPT0iCiJwbGF0Zm9ybT09d2luZG93cz09IgoidW5wYWNrUmVzdWx0PT0kd189PSIKI [06:36:04.493] > mRpZExvY2FsRG93bmxvYWQ9PSR2Xz09IgoiZG93bmxvYWRUaW1lPT0kbl89PSIKImluc3RhbGxUaW1lPT0kb189PSIKImV4dEluc3R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JGYWlsZWQgdG8gZmluZCBXaW5kb3dzIHZlcnNpb24gLSAkKCRfLlRvU3RyaW5nKCkpIgokZ2xvYmFsOmFpXyA9ICJ1bmtub3duIgp9CnByaW50UmVzdWx0CiIkcGlkLCB3YXRjaGluZyAkc3NoZFBJRCIKd2hpbGUgKCRUcnVlKSB7CmJfCnNsZWVwIDMwCn0KfQoiNzNiMjJhMD [06:36:04.500] > NkMGM2 [06:36:04.500] > OiByZXN1bWVMb2ciCm1haW4K')))); powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive -EncodedCommand `$remoteSSHConfigurationScript" [06:36:06.938] > 73b22a03d0c6: running 73b22a03d0c6: pauseLog [06:36:07.000] > 73b22a03d0c6: resumeLog [06:36:07.196] > Looking for existing CLI in C:\Users\juanw_.vscode-server [06:36:07.199] > Downloading cli ia32 73b22a03d0c6%%1%% [06:36:08.008] > Download failed. - Not Found [06:36:08.010] > Trigger local server download [06:36:08.011] > 73b22a03d0c6:trigger_serverdownload artifact==cli-win32== destFolder==C:\Users\juanw.vscode-server== destFolder2==/vscode-cli-903b1e9d8990623e3d7da1df3d33db3e42d80eda.zip== [06:36:08.012] > 73b22a03d0c6:trigger_server_downloadend Waiting for client to transfer server archive... Waiting for C:\Users\juanw.vscode-server\vscode-cli-903b1e9d8990623e3d7da1df3d33db3e42d80eda.zip.done and vscode-cli-903b1e9d8990623e3d7da1df3d33db3e42d80eda.zip to exist [06:36:08.014] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\Users\juanw_\.vscode-server/vscode-cli-903b1e9d8990623e3d7da1df3d33db3e42d80eda.zip"} [06:36:08.014] Downloading VS Code server locally... [06:36:08.918] Terminating local server [06:36:08.919] Exec server for ssh-remote+192.168.0.154 failed: Error: Server returned 404 [06:36:08.920] Error opening exec server for ssh-remote+192.168.0.154: Error: Server returned 404 [06:36:08.925] Local server exit: 15

juanjgacosta commented 2 months ago

@roblourens follows too the log from Mac M2 to an SBC Orange Pi PC Plus with "Debian GNU/Linux 10 (buster) - Linux 5.15.74-sunxi". (this connection broke since vscode v1.90 and Remore SSH extension v0.108.0):

[18:13:38.381] Log Level: 2 [18:13:38.383] SSH Resolver called for "ssh-remote+192.168.0.169", attempt 1 [18:13:38.383] "remote.SSH.useLocalServer": true [18:13:38.383] "remote.SSH.useExecServer": false [18:13:38.383] "remote.SSH.path": undefined [18:13:38.383] "remote.SSH.configFile": undefined [18:13:38.383] "remote.SSH.useFlock": true [18:13:38.383] "remote.SSH.lockfilesInTmp": false [18:13:38.383] "remote.SSH.localServerDownload": auto [18:13:38.383] "remote.SSH.remoteServerListenOnSocket": false [18:13:38.384] "remote.SSH.showLoginTerminal": false [18:13:38.384] "remote.SSH.defaultExtensions": [] [18:13:38.384] "remote.SSH.loglevel": 2 [18:13:38.384] "remote.SSH.enableDynamicForwarding": true [18:13:38.384] "remote.SSH.enableRemoteCommand": false [18:13:38.384] "remote.SSH.serverPickPortsFromRange": {} [18:13:38.384] "remote.SSH.serverInstallPath": {} [18:13:38.385] VS Code version: 1.86.2 [18:13:38.385] Remote-SSH version: remote-ssh@0.107.1 [18:13:38.385] darwin arm64 [18:13:38.385] SSH Resolver called for host: 192.168.0.169 [18:13:38.385] Setting up SSH remote "192.168.0.169" [18:13:38.386] Acquiring local install lock: /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-remote-ssh-c0c5efc2-install.lock [18:13:38.386] Looking for existing server data file at /Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-c0c5efc2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-tr/data.json [18:13:38.387] Using commit id "903b1e9d8990623e3d7da1df3d33db3e42d80eda" and quality "stable" for server [18:13:38.389] Install and start server if needed [18:13:38.390] PATH: /Users/juan/.pyenv/shims:/Applications/ArmGNUToolchain/12.3.rel1/arm-none-eabi/bin:/Users/juan/.nvm/versions/node/v18.16.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin [18:13:38.390] Checking ssh with "ssh -V" [18:13:38.393] > OpenSSH_9.6p1, LibreSSL 3.3.6

[18:13:38.394] askpass server listening on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-25797f58d37656804a11dde30a31f9c1f6c67458.sock [18:13:38.394] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-04aff4e64868c24935c1f6f68e24a60e55687b0f.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","49990","-o","ConnectTimeout=15","192.168.0.169"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-c0c5efc2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-tr/data.json"} [18:13:38.394] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.cgw8OUK172/Listeners","SHELL":"/bin/bash","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-25797f58d37656804a11dde30a31f9c1f6c67458.sock"} [18:13:38.395] Spawned 98991 [18:13:38.479] > local-server-1> Running ssh connection command: "-v -T -D 49990 -o ConnectTimeout=15 192.168.0.169" [18:13:38.479] > local-server-1> Spawned ssh, pid=98999 [18:13:38.482] stderr> OpenSSH_9.6p1, LibreSSL 3.3.6 [18:13:38.647] stderr> debug1: Server host key: ssh-ed25519 SHA256:VlqXQpEwFZpIFM2kn7dasxhvQa5iie0kP4VGMyOZDHU [18:13:38.832] Got askpass request: {"request":"--ms-enable-electron-run-as-node if@192.168.0.169's password:"} [18:13:38.832] Showing password prompt [18:13:38.833] Listening for interwindow password on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-ef18985930acf42c28c6c6b6867f5155603e3d84.sock [18:13:38.833] Writing password prompt to globalState [18:14:02.890] Got password response [18:14:02.892] Interactor gave response: ** [18:14:02.892] Cleaning up other-window auth server [18:14:03.085] stderr> Authenticated to 192.168.0.169 ([192.168.0.169]:22) using "password". [18:14:03.831] >  ____  __ ____

/  | () | \ / |
| | | | |) | | | |) | | | | | || | /| | | /| |
| | __/|| || || ___| ||

Welcome to Debian GNU/Linux 10 (buster) with Linux 5.15.74-sunxi

System load: 8% Up time: 4 min Local users: 2
Memory usage: 35% of 999M IP: 192.168.0.169 CPU temp: 35°C Usage of /: 84% of 7.3G

[ General system configuration (beta): armbian-config ] [18:14:03.850] > ready: 69925b317930 [18:14:03.867] > Linux 5.15.74-sunxi #22.08.6 SMP Tue Oct 18 07:00:33 UTC 2022 [18:14:03.867] Platform: linux [18:14:03.877] > /bin/bash [18:14:03.877] Shell: bash [18:14:03.877] Creating bash subshell inside "bash" [18:14:03.893] > bash version: 5.0.3(1)-release [18:14:03.960] > 69925b317930: running [18:14:04.118] > Acquiring lock on /home/if/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda/vscode-remote-lock.if.903b1e9d8990623e3d7da1df3d33db3e42d80eda [18:14:04.138] > Found existing installation at /home/if/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda... Checking /home/if/.vscode-server/.903b1e9d8990623e3d7da1df3d33db3e42d80eda.log and /home/if/.vscode-server/.903b1e9d8990623e3d7da1df3d33db3e42d80eda.pid for a running server [18:14:04.151] > Looking for server with pid: 13590 [18:14:04.228] > Running ssh connection command... /home/if/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda/bin/code-server --start-server --host=127.0.0.1 --accept-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level off &> "/home/if/.vscode-server/.903b1e9d8990623e3d7da1df3d33db3e42d80eda.log" < /dev/null printenv: [18:14:04.236] > SHELL=/bin/bash LANGUAGE=en_US.UTF-8 PWD=/home/if LOGNAME=if XDG_SESSION_TYPE=tty HOME=/home/if LANG=en_US.UTF-8 VSCODE_AGENT_FOLDER=/home/if/.vscode-server SSH_CONNECTION=192.168.0.182 49991 192.168.0.169 22 XDG_SESSION_CLASS=user USER=if SHLVL=1 LC_MESSAGES=en_US.UTF-8 XDG_SESSION_ID=5 XDG_RUNTIME_DIR=/run/user/1000 SSH_CLIENT=192.168.0.182 49991 22 LC_ALL=en_US.UTF-8 PATH=/home/if/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games DBUS_SESSION_BUSADDRESS=unix:path=/run/user/1000/bus MAIL=/var/mail/if =/usr/bin/printenv [18:14:04.264] > Removing old logfile at /home/if/.vscode-server/.903b1e9d8990623e3d7da1df3d33db3e42d80eda.log [18:14:04.271] > Spawned remote server: 4635 [18:14:04.289] > Waiting for server log... [18:14:04.338] > Waiting for server log... [18:14:04.390] > Waiting for server log... [18:14:04.444] > Waiting for server log... [18:14:04.491] > Waiting for server log... [18:14:04.540] > Waiting for server log... [18:14:04.589] > Waiting for server log... [18:14:04.638] > Waiting for server log... [18:14:04.685] > Waiting for server log... [18:14:04.734] > Waiting for server log... [18:14:04.782] > Waiting for server log... [18:14:04.831] > Waiting for server log... [18:14:04.878] > Waiting for server log... [18:14:04.927] > Waiting for server log... [18:14:04.975] > Waiting for server log... [18:14:05.023] > Waiting for server log... [18:14:05.073] > Waiting for server log... [18:14:05.120] > Waiting for server log... [18:14:05.166] > Waiting for server log... [18:14:05.217] > Waiting for server log... [18:14:05.265] > Waiting for server log... [18:14:05.315] > Waiting for server log... [18:14:05.362] > Waiting for server log... [18:14:05.411] > Waiting for server log... [18:14:05.459] > Waiting for server log... [18:14:05.508] > Waiting for server log... [18:14:05.556] > Waiting for server log... [18:14:05.604] > Waiting for server log... [18:14:05.652] > Waiting for server log... [18:14:05.702] > Waiting for server log... [18:14:05.750] > Waiting for server log... [18:14:05.801] > Waiting for server log... [18:14:05.848] > Waiting for server log... [18:14:05.897] > Waiting for server log... [18:14:05.950] > Waiting for server log... [18:14:05.999] > Waiting for server log... [18:14:06.049] > Waiting for server log... [18:14:06.101] > Waiting for server log... [18:14:06.153] > Waiting for server log... [18:14:06.203] > Waiting for server log... [18:14:06.255] > Waiting for server log... [18:14:06.306] > Waiting for server log... [18:14:06.359] > Waiting for server log... [18:14:06.407] > Waiting for server log... [18:14:06.479] >
*

[18:14:06.531] > 69925b317930: start SSH_AUTH_SOCK==== DISPLAY==== webUiAccessToken==== listeningOn==34149== osReleaseId==debian== arch==armv7l== vscodeArch==armhf== bitness==32== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==2229== connectionToken==a1a11a11-1111-1111-a1a1-11a1a111111a== 69925b317930: end [18:14:06.532] Received install output: SSH_AUTH_SOCK==== DISPLAY==== webUiAccessToken==== listeningOn==34149== osReleaseId==debian== arch==armv7l== vscodeArch==armhf== bitness==32== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==2229== connectionToken==a1a11a11-1111-1111-a1a1-11a1a111111a==

[18:14:06.532] Remote server is listening on port 34149 [18:14:06.532] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":34149},"osReleaseId":"debian","arch":"armv7l","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","connectionToken":"a1a11a11-1111-1111-a1a1-11a1a111111a"},"serverStartTime":2229,"installUnpackCode":""} [18:14:06.533] Persisting server connection details to /Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-c0c5efc2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-tr/data.json [18:14:06.535] Starting forwarding server. local port 49993 -> socksPort 49990 -> remotePort 34149 [18:14:06.536] Forwarding server listening on port 49993 [18:14:06.536] Waiting for ssh tunnel to be ready [18:14:06.537] Tunneled port 34149 to local port 49993 [18:14:06.537] Resolved "ssh-remote+192.168.0.169" to "port 49993" [18:14:06.539] [Forwarding server port 49993] Got connection 0 [18:14:06.544] ------

[18:14:06.559] [Forwarding server port 49993] Got connection 1 [18:14:08.415] [Forwarding server port 49993] Got connection 2 [18:14:11.284] Opening exec server for ssh-remote+192.168.0.169 [18:14:11.289] Initizing new exec server for ssh-remote+192.168.0.169 [18:14:11.304] Acquiring local install lock: /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-remote-ssh-c0c5efc2-install.lock [18:14:11.308] Looking for existing server data file at /Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-c0c5efc2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-es/data.json [18:14:11.308] Using commit id "903b1e9d8990623e3d7da1df3d33db3e42d80eda" and quality "stable" for server [18:14:11.310] Install and start server if needed [18:14:11.313] askpass server listening on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-3affe9657999cf631c99f726047e98cf0789d346.sock [18:14:11.313] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-11bd3caeffa5fe70b2d7a5cdbf76f9ddd6601c06.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","50000","-o","ConnectTimeout=15","192.168.0.169"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-c0c5efc2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-es/data.json"} [18:14:11.313] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.cgw8OUK172/Listeners","SHELL":"/bin/bash","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/juan/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-3affe9657999cf631c99f726047e98cf0789d346.sock"} [18:14:11.314] Spawned 854 [18:14:11.400] > local-server-2> Running ssh connection command: "-v -T -D 50000 -o ConnectTimeout=15 192.168.0.169" [18:14:11.401] > local-server-2> Spawned ssh, pid=862 [18:14:11.403] stderr> OpenSSH_9.6p1, LibreSSL 3.3.6 [18:14:11.557] stderr> debug1: Server host key: ssh-ed25519 SHA256:VlqXQpEwFZpIFM2kn7dasxhvQa5iie0kP4VGMyOZDHU [18:14:11.741] Got askpass request: {"request":"--ms-enable-electron-run-as-node if@192.168.0.169's password:"} [18:14:11.741] Showing password prompt [18:14:11.742] Listening for interwindow password on /var/folders/3z/kt7fvb3x5z11rkm9ymn1r4n00000gn/T/vscode-ssh-askpass-0cf9b8703a1ceb355e2f8396a72e2501d1b725ab.sock [18:14:11.742] Writing password prompt to globalState [18:14:18.397] Got password response [18:14:18.398] Interactor gave response: ** [18:14:18.398] Cleaning up other-window auth server [18:14:18.582] stderr> Authenticated to 192.168.0.169 ([192.168.0.169]:22) using "password". [18:14:19.338] >  ____  __ ____

/  | () | \ / |
| | | | |) | | | |) | | | | | || | /| | | /| |
| | __/|| || || ___| ||

Welcome to Debian GNU/Linux 10 (buster) with Linux 5.15.74-sunxi

System load: 36% Up time: 4 min Local users: 2
Memory usage: 44% of 999M IP: 192.168.0.169 CPU temp: 45°C Usage of /: 84% of 7.3G
[18:14:19.363] > ready: 276d625d1a41 [18:14:19.377] > Linux 5.15.74-sunxi #22.08.6 SMP Tue Oct 18 07:00:33 UTC 2022 [18:14:19.377] Platform: linux [18:14:19.390] > /bin/bash [18:14:19.390] Shell: bash [18:14:19.390] Creating bash subshell inside "bash" [18:14:19.408] > bash version: 5.0.3(1)-release [18:14:19.443] > 276d625d1a41: running [18:14:19.507] > Found existing installation at /home/if/.vscode-server... Running ssh connection command... /home/if/.vscode-server/code-903b1e9d8990623e3d7da1df3d33db3e42d80eda command-shell --cli-data-dir /home/if/.vscode-server/cli --on-port --require-token 13a982dda756 --parent-process-id 5236 &> "/home/if/.vscode-server/.cli.903b1e9d8990623e3d7da1df3d33db3e42d80eda.log" < /dev/null printenv: [18:14:19.513] > SHELL=/bin/bash LANGUAGE=en_US.UTF-8 PWD=/home/if LOGNAME=if XDG_SESSION_TYPE=tty HOME=/home/if LANG=en_US.UTF-8 VSCODE_AGENT_FOLDER=/home/if/.vscode-server SSH_CONNECTION=192.168.0.182 50001 192.168.0.169 22 XDG_SESSION_CLASS=user USER=if SHLVL=1 LC_MESSAGES=en_US.UTF-8 XDG_SESSION_ID=6 XDG_RUNTIME_DIR=/run/user/1000 SSH_CLIENT=192.168.0.182 50001 22 LC_ALL=en_US.UTF-8 PATH=/home/if/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games DBUS_SESSION_BUSADDRESS=unix:path=/run/user/1000/bus MAIL=/var/mail/if =/usr/bin/printenv [18:14:19.525] > Removing old logfile at /home/if/.vscode-server/.cli.903b1e9d8990623e3d7da1df3d33db3e42d80eda.log [18:14:19.535] > Spawned remote CLI: 5255 [18:14:19.563] > Waiting for server log... [18:14:19.627] > Waiting for server log... [18:14:19.697] > Waiting for server log... [18:14:19.760] > Waiting for server log... [18:14:19.828] > Waiting for server log... [18:14:19.878] > Waiting for server log... [18:14:19.934] > Waiting for server log... [18:14:19.989] > Waiting for server log... [18:14:20.059] > Waiting for server log... [18:14:20.138] > Waiting for server log... [18:14:20.191] > Waiting for server log... [18:14:20.244] > Waiting for server log... [18:14:20.307] > 276d625d1a41: start SSH_AUTH_SOCK==== DISPLAY==== listeningOn==127.0.0.1:40525== osReleaseId==debian== arch==armv7l== vscodeArch==armhf== bitness==32== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==781== execServerToken==13a982dda756== 276d625d1a41: end [18:14:20.307] Received install output: SSH_AUTH_SOCK==== DISPLAY==== listeningOn==127.0.0.1:40525== osReleaseId==debian== arch==armv7l== vscodeArch==armhf== bitness==32== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==781== execServerToken==13a982dda756==

[18:14:20.308] Remote server is listening on port 40525 [18:14:20.308] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":40525},"osReleaseId":"debian","arch":"armv7l","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"13a982dda756"},"serverStartTime":781,"installUnpackCode":""} [18:14:20.308] Persisting server connection details to /Users/juan/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-c0c5efc2-903b1e9d8990623e3d7da1df3d33db3e42d80eda-0.107.1-es/data.json [18:14:20.310] Starting forwarding server. local port 50003 -> socksPort 50000 -> remotePort 40525 [18:14:20.310] Forwarding server listening on port 50003 [18:14:20.310] Waiting for ssh tunnel to be ready [18:14:20.311] Tunneled port 40525 to local port 50003 [18:14:20.311] Resolved "ssh-remote+192.168.0.169" to "port 50003" [18:14:20.311] Resolving exec server at port 50003 [18:14:20.311] [Forwarding server port 50003] Got connection 0 [18:14:20.311] [Forwarding server port 50003] Got connection 1 [18:14:20.719] Exec server for ssh-remote+192.168.0.169 created and cached [18:14:20.744] Opening exec server for ssh-remote+192.168.0.169 [18:14:20.757] Verified and reusing cached exec server for ssh-remote+192.168.0.169

xy-23 commented 2 months ago

same problem

vscode:

Version: 1.90.2 Commit: 5437499feb04f7a586f677b155b039bc2b3669eb Date: 2024-06-18T22:54:35.075Z (1 day ago) Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0

remote target:

OS: Windows_NT arm64 10.0.22631 Parallels Desktop 19.4.0 (54962)

remote-ssh:

0.112.0 downgrading remote-ssh to 0.109.0 and upgrading to pre-release also not working :(

msalandro commented 2 months ago

We don't publish a server for windows ARM.

Is this something you plan on supporting in the future? Relying on emulation doesn't work for my case.

9throok commented 2 months ago

Those who still have the issue after downgrading Remote SSH to version (v.0.109.0) try quiting the complete app and launching again.

This worked for me

jenish-rudani commented 1 month ago

Those who still have the issue after downgrading Remote SSH to version (v.0.109.0) try quiting the complete app and launching again.

This worked for me

[10:56:30.800] Log Level: 2 [10:56:30.810] SSH Resolver called for "ssh-remote+win11", attempt 1 [10:56:30.811] "remote.SSH.useLocalServer": false [10:56:30.811] "remote.SSH.useExecServer": true [10:56:30.811] "remote.SSH.showLoginTerminal": true [10:56:30.811] "remote.SSH.remotePlatform": {"10.211.55.4":"windows","win11":"windows"} [10:56:30.811] "remote.SSH.path": undefined [10:56:30.811] "remote.SSH.configFile": undefined [10:56:30.811] "remote.SSH.useFlock": true [10:56:30.811] "remote.SSH.lockfilesInTmp": false [10:56:30.811] "remote.SSH.localServerDownload": auto [10:56:30.811] "remote.SSH.remoteServerListenOnSocket": false [10:56:30.811] "remote.SSH.showLoginTerminal": true [10:56:30.811] "remote.SSH.defaultExtensions": [] [10:56:30.811] "remote.SSH.loglevel": 2 [10:56:30.811] "remote.SSH.maxReconnectionAttempts": 2 [10:56:30.812] "remote.SSH.enableDynamicForwarding": false [10:56:30.812] "remote.SSH.enableRemoteCommand": false [10:56:30.812] "remote.SSH.serverPickPortsFromRange": {} [10:56:30.812] "remote.SSH.serverInstallPath": {} [10:56:30.818] VS Code version: 1.91.1 [10:56:30.818] Remote-SSH version: remote-ssh@0.109.0 [10:56:30.818] darwin arm64 [10:56:30.820] SSH Resolver called for host: win11 [10:56:30.820] Setting up SSH remote "win11" [10:56:30.820] Using commit id "f1e16e1e6214d7c44d078b1f0607b2388f29d729" and quality "stable" for server [10:56:30.822] Install and start server if needed [10:56:30.824] PATH: /Users/atom/bin:/Applications/::/Users/atom/go/bin:/opt/homebrew/opt/mysql@5.7//bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home//bin:/bin/:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin [10:56:30.824] Checking ssh with "ssh -V" [10:56:30.830] > OpenSSH_9.4p1, LibreSSL 3.3.6

[10:56:30.832] Remote command length: 4863/8192 characters [10:56:30.832] Running script with connection command: ssh -T -o ClearAllForwardings=true -o ConnectTimeout=15 -o RemoteCommand=none win11 powershell [10:56:32.138] > Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\atom> PS C:\Users\atom> $uuid="aaf08c52f256" [10:56:32.138] Got some output, clearing connection timeout [10:56:32.159] > PS C:\Users\atom> "${uuid}: running" aaf08c52f256: running [10:56:32.165] > PS C:\Users\atom> "aaf08c52f256: pauseLog" aaf08c52f256: pauseLog [10:56:32.476] > aaf08c52f256: resumeLog PS C:\Users\atom> main [10:56:32.623] > Looking for existing CLI in C:\Users\atom.vscode-server Downloading cli ia32 aaf08c52f256%%1%% [10:56:32.692] > Download failed. - Not Found Trigger local server download aaf08c52f256:trigger_server_download artifact==cli-win32== destFolder==C:\Users\atom.vscode-server== destFolder2==/vscode-cli-f1e16e1e6214d7c44d078b1f0607b2388f29d729.zip== aaf08c52f256:trigger_server_download_end Waiting for client to transfer server archive... Waiting for C:\Users\atom.vscode-server\vscode-cli-f1e16e1e6214d7c44d078b1f0607b2388f29d729.zip.done and vscode-cli-f1e16e1e6214d7c44d078b1f0607b2388f29d729.zip to exist [10:56:32.693] Got request to download on client for {"artifact":"cli-win32","destPath":"C:\Users\atom\.vscode-server/vscode-cli-f1e16e1e6214d7c44d078b1f0607b2388f29d729.zip"} [10:56:32.693] Downloading VS Code server locally... [10:56:32.717] Resolver error: Error: Failed to download VS Code Server (Server returned 404) at g.Create (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:499734) at /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:550334 at async t.downloadAndCopyToHost (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:549834) at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:620008 at async t.tryInstall (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:620254) at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:580447 at async t.withShowDetailsEvent (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:583753) at async k (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:577412) at async t.resolve (/Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:581124) at async /Users/atom/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0/out/extension.js:2:847283 [10:56:32.721] ------

This doesn't work.

jenish-rudani commented 1 month ago

This has more or less broken my ability to do Remote Development where the target machine is Windows ARM64.

Steps to reproduce

  1. Install OpenSSH on Windows ARM64. You can get this from https://github.com/PowerShell/Win32-OpenSSH. OpenSSH-ARM64-vm.m.r.p.msi installer.
  2. Note that the SSHD agent is running as ARM64 in the Task manager.
  3. For good measure, SSH in to the Windows machine. $env:PROCESSOR_ARCHITECTURE outputs ARM64
  4. Try to connect to it with the "Remote - SSH" extension.
  5. Connection succeeds, but the logs indicate that while download ing the VS Code Server, a 404 error is produced.

This appears to be a bug in the detection logic for what platform you are using.

When the Remote extension initially makes a connection to a remote host, it runs a base64 encoded PowerShell script, as seen here in the logs.

image

The fully decode script is here, but notably these lines:

$p=$env:PROCESSOR_ARCHITECTURE
$arch=if (($p -eq 'AMD64') -or ($p -eq 'IA64')) { 'x64' } else { 'ia32' }

This handles the AMD64 and IA64 architecture (why IA64, I have no idea) but not ARM64. Since ARM64 is not handled, it goes in to the else resulting in "ia32", which is x86.

That ultimately ends up assembling a download URL for 32-bit Intel. Therefore the architecture detection script incorrectly identifies ARM64 as "ia32".

I don't know if the remote agent has an ARM64 build at all, but I think this script could be tweaked to map ARM64 -> "x64" and use the AMD64 server since Windows is able to do WOW for AMD64 on ARM64. Though a native ARM64 binary would be best.

Update

I patched my VS Code extension so that the platform detection script looked like this:

$arch=if (($p -eq 'AMD64') -or ($p -eq 'IA64') -or ($p -eq 'ARM64')) { 'x64' } else { 'ia32' }

And it works fine now. Obviously I will lose this fix when the extension updates, but it proves that the fix is, at least on the surface, pretty trivial.

This works as Remote SSH installs x64 server on ARM64 host if I patch extension.js file of Remote SSH under ~/.vscode/extensions/ms-vscode-remote.remote-ssh-0.109.0

I replaced $arch to be set to x64 if ARM64, IA64 or AMD64 is detected and i32 for everything else ;), as you indicated.

It seems that we can't move forward as there is no vscode-server HOST for ARM64 windows.

*UPDATE: Typos

AwsMLMaster commented 1 month ago

Had the same problem while I was on the latest vscode version and latest remote-ssh version. downgrading to vs code locally to 1.85 solved it.

joshspicer commented 1 month ago

Pre-release version v0.113.2024072215 was just released and should resolve this issue. Please let me know if there's any questions and/or feedback!