microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.23k stars 29.29k forks source link

SSH server on Fedora: Could not establish connection #226759

Closed chrmarti closed 2 months ago

chrmarti commented 2 months ago

Testing #226689

Remote - SSH v0.114.2024082315

Using one window to run a devcontainer:

{
    "dockerFile": "Dockerfile",
    "appPort": 1234,
    "overrideCommand": false
}
FROM fedora:latest

RUN dnf install -y openssh-server

RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -i 's/#AllowTcpForwarding yes/AllowTcpForwarding yes/' /etc/ssh/sshd_config

RUN ssh-keygen -A

RUN echo "root:foobar" | chpasswd

EXPOSE 1234
CMD ["/usr/sbin/sshd", "-D", "-p", "1234"]

Then connecting to the ssh server: root@localhost:1234

Image

Log:

[16:04:44.157] Log Level: 2
[16:04:44.161] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d", attempt 1
[16:04:44.161] "remote.SSH.useLocalServer": true
[16:04:44.161] "remote.SSH.useExecServer": true
[16:04:44.162] "remote.SSH.path": undefined
[16:04:44.162] "remote.SSH.configFile": undefined
[16:04:44.162] "remote.SSH.useFlock": true
[16:04:44.162] "remote.SSH.lockfilesInTmp": false
[16:04:44.162] "remote.SSH.localServerDownload": auto
[16:04:44.162] "remote.SSH.remoteServerListenOnSocket": false
[16:04:44.162] "remote.SSH.showLoginTerminal": false
[16:04:44.162] "remote.SSH.defaultExtensions": []
[16:04:44.162] "remote.SSH.loglevel": 2
[16:04:44.162] "remote.SSH.enableDynamicForwarding": true
[16:04:44.162] "remote.SSH.enableRemoteCommand": false
[16:04:44.162] "remote.SSH.serverPickPortsFromRange": {}
[16:04:44.162] "remote.SSH.serverInstallPath": {}
[16:04:44.163] "remote.SSH.permitPtyAllocation": false
[16:04:44.163] "remote.SSH.preferredLocalPortRange: undefined
[16:04:44.163] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[16:04:44.166] VS Code version: 1.93.0-insider
[16:04:44.166] Remote-SSH version: remote-ssh@0.114.2024082315
[16:04:44.167] darwin arm64
[16:04:44.171] SSH Resolver called for host: root@localhost
[16:04:44.171] Setting up SSH remote "localhost"
[16:04:44.173] Acquiring local install lock: /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-remote-ssh-fd5f9128-install.lock
[16:04:44.174] Looking for existing server data file at /Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json
[16:04:44.174] No existing data file
[16:04:44.175] Using commit id "ff7a154d5e5e9034914f0466420f0f1407f0c95e" and quality "insider" for server
[16:04:44.176] Script variables:
 {
  "InstallExitCode.24": "AlreadyInProgress",
  "InstallExitCode.25": "ServerDownloadFailed",
  "InstallExitCode.26": "NoDownloaderAvailable",
  "InstallExitCode.27": "UnsupportedArch",
  "InstallExitCode.28": "StatusCheckFailed",
  "InstallExitCode.29": "NeedInsidersArch",
  "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
  "InstallExitCode.31": "ServerTransferFailed",
  "InstallExitCode.32": "ServerFailedToStart",
  "InstallExitCode.33": "NeedInsidersWindows",
  "InstallExitCode.34": "CreateInstallDirFailed",
  "InstallExitCode.35": "UnsupportedPlatform",
  "InstallExitCode.36": "ServerTerminatedCVE20201416",
  "InstallExitCode.37": "UnpackFailed",
  "InstallExitCode.AlreadyInProgress": "24",
  "InstallExitCode.ServerDownloadFailed": "25",
  "InstallExitCode.NoDownloaderAvailable": "26",
  "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
  "InstallExitCode.UnsupportedArch": "27",
  "InstallExitCode.StatusCheckFailed": "28",
  "InstallExitCode.NeedInsidersArch": "29",
  "InstallExitCode.ServerTransferFailed": "31",
  "InstallExitCode.ServerFailedToStart": "32",
  "InstallExitCode.NeedInsidersWindows": "33",
  "InstallExitCode.CreateInstallDirFailed": "34",
  "InstallExitCode.UnsupportedPlatform": "35",
  "InstallExitCode.ServerTerminatedCVE20201416": "36",
  "InstallExitCode.UnpackFailed": "37",
  "InstallUnpackCode.Success": "success",
  "InstallUnpackCode.Error": "error",
  "InstallUnpackCode.MissingFiles": "missingFiles",
  "uuid": "ddf4c16006f0",
  "startMarker": "ddf4c16006f0: running",
  "commitId": "ff7a154d5e5e9034914f0466420f0f1407f0c95e",
  "quality": "insider",
  "token": "60b424ee-2342-47ee-9360-1024e7ba3ca1",
  "vscodeAgentFolder": "$HOME/.vscode-server-insiders",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code-insiders",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "printArgs": "echo -e SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\\nDISPLAY==$DISPLAY==",
  "getDownloadServerStartTrigger": "ddf4c16006f0:trigger_server_download",
  "getDownloadServerEndTrigger": "ddf4c16006f0:trigger_server_download_end",
  "getProgressDownloading": "ddf4c16006f0%%1%%",
  "getProgressInstalling": "ddf4c16006f0%%2%%"
}
[16:04:44.177] Install and start server if needed
[16:04:44.181] PATH: /Users/chrmarti/bin:/Users/chrmarti/.nvm/versions/node/v20.13.1/bin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/chrmarti/.dotnet/tools:/Library/Frameworks/Python.framework/Versions/2.7/bin:/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:/opt/X11/bin
[16:04:44.181] Checking ssh with "ssh -V"
[16:04:44.188] > OpenSSH_9.7p1, LibreSSL 3.3.6

[16:04:44.191] askpass server listening on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-e571dfa504279cdcb46f37b91663766a26f6bef9.sock
[16:04:44.192] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-7df663ac24330ad8a5b3e772f8bfafaf6a3b029b.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","51183","-o","ConnectTimeout=99999","-p","1234","root@localhost"],"serverDataFolderName":".vscode-server-insiders","dataFilePath":"/Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json"}
[16:04:44.192] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.x2Qvkw9gNj/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.lD53RDuqJV/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-e571dfa504279cdcb46f37b91663766a26f6bef9.sock"}
[16:04:44.192] Spawned 65570
[16:04:44.277] > local-server-1> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
[16:04:44.279] > local-server-1> Spawned ssh, pid=65583
[16:04:44.284] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6
[16:04:44.307] stderr> debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
[16:04:44.419] Got askpass request: {"request":" root@localhost's password: "}
[16:04:44.419] Showing password prompt
[16:04:44.420] Listening for interwindow password on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-5ce9321866d4f89600b938ce265a075bc80908c1.sock
[16:04:44.420] Writing password prompt to globalState
[16:04:46.524] Got password response
[16:04:46.524] Interactor gave response: ******
[16:04:46.525] Cleaning up other-window auth server
[16:04:46.600] stderr> Authenticated to localhost ([127.0.0.1]:1234) using "password".
[16:04:46.637] > Last failed login: Tue Aug 27 14:04:34 UTC 2024 from 172.17.0.1 on ssh:notty
> There were 14 failed login attempts since the last successful login.
[16:04:46.648] > ready: ddf4c16006f0
[16:04:46.650] > Linux 6.6.32-linuxkit #1 SMP Thu Jun 13 14:13:01 UTC 2024
[16:04:46.650] Platform: linux
[16:04:46.651] > /bin/bash
[16:04:46.651] Shell: bash
[16:04:46.651] Creating bash subshell inside "bash"
[16:04:46.653] > bash version:  5.2.26(1)-release
[16:04:46.656] > ddf4c16006f0: running
[16:04:46.662] > Found existing installation at /root/.vscode-server-insiders...
> Starting VS Code CLI...
> printenv:
[16:04:46.662] >     SHELL=/bin/bash
>     HISTCONTROL=ignoredups
>     HOSTNAME=5435449deb49
>     HISTSIZE=1000
>     DISTTAG=f40container
>     PWD=/root
>     LOGNAME=root
>     FBR=f40
>     MOTD_SHOWN=pam
>     HOME=/root
>     LANG=C.UTF-8
>     FGC=f40
>     SSH_CONNECTION=172.17.0.1 55532 172.17.0.2 1234
>     USER=root
>     SHLVL=2
>     SSH_CLIENT=172.17.0.1 55532 1234
>     PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>     MAIL=/var/spool/mail/root
>     _=/usr/bin/printenv
[16:04:46.663] > Removing old logfile at /root/.vscode-server-insiders/.cli.ff7a154d5e5e9034914f0466420f0f1407f0c95e.log
[16:04:46.664] > Spawned remote CLI: 1501
[16:04:46.667] > Exec server process not found
[16:04:46.667] stderr> main: line 344: ps: command not found
[16:04:46.669] > ddf4c16006f0: start
> SSH_AUTH_SOCK====
> DISPLAY====
> listeningOn====
> osReleaseId==fedora==
> arch==aarch64==
> vscodeArch==arm64==
> bitness==64==
> tmpDir==/tmp==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==5==
> execServerToken==11a111aa-1111-11aa-1111-1111a1aa1aa1==
> ddf4c16006f0: end
[16:04:46.669] Received install output: 
SSH_AUTH_SOCK====
DISPLAY====
listeningOn====
osReleaseId==fedora==
arch==aarch64==
vscodeArch==arm64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==5==
execServerToken==11a111aa-1111-11aa-1111-1111a1aa1aa1==

[16:04:46.669] Failed to parse remote port from server output
[16:04:46.670] Terminating local server
[16:04:46.673] Resolver error: Error: 
    at v.Create (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:501362)
    at t.handleInstallOutput (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:498684)
    at e (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:553041)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:575207
    at async t.withShowDetailsEvent (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:578826)
    at async /Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:549746
    at async T (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:547797)
    at async t.resolveWithLocalServer (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:549286)
    at async k (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:572339)
    at async t.resolve (/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:576237)
    at async /Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/extension.js:2:844358
[16:04:46.673] Local server exit: 15
[16:04:46.678] ------

[16:04:46.822] Opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:46.882] Opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:46.895] Acquiring local install lock: /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-remote-ssh-fd5f9128-install.lock
[16:04:46.895] Initizing new exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:46.901] Looking for existing server data file at /Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json
[16:04:46.901] No existing data file
[16:04:46.902] Using commit id "ff7a154d5e5e9034914f0466420f0f1407f0c95e" and quality "insider" for server
[16:04:46.903] Script variables:
 {
  "InstallExitCode.24": "AlreadyInProgress",
  "InstallExitCode.25": "ServerDownloadFailed",
  "InstallExitCode.26": "NoDownloaderAvailable",
  "InstallExitCode.27": "UnsupportedArch",
  "InstallExitCode.28": "StatusCheckFailed",
  "InstallExitCode.29": "NeedInsidersArch",
  "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
  "InstallExitCode.31": "ServerTransferFailed",
  "InstallExitCode.32": "ServerFailedToStart",
  "InstallExitCode.33": "NeedInsidersWindows",
  "InstallExitCode.34": "CreateInstallDirFailed",
  "InstallExitCode.35": "UnsupportedPlatform",
  "InstallExitCode.36": "ServerTerminatedCVE20201416",
  "InstallExitCode.37": "UnpackFailed",
  "InstallExitCode.AlreadyInProgress": "24",
  "InstallExitCode.ServerDownloadFailed": "25",
  "InstallExitCode.NoDownloaderAvailable": "26",
  "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
  "InstallExitCode.UnsupportedArch": "27",
  "InstallExitCode.StatusCheckFailed": "28",
  "InstallExitCode.NeedInsidersArch": "29",
  "InstallExitCode.ServerTransferFailed": "31",
  "InstallExitCode.ServerFailedToStart": "32",
  "InstallExitCode.NeedInsidersWindows": "33",
  "InstallExitCode.CreateInstallDirFailed": "34",
  "InstallExitCode.UnsupportedPlatform": "35",
  "InstallExitCode.ServerTerminatedCVE20201416": "36",
  "InstallExitCode.UnpackFailed": "37",
  "InstallUnpackCode.Success": "success",
  "InstallUnpackCode.Error": "error",
  "InstallUnpackCode.MissingFiles": "missingFiles",
  "uuid": "34f5307915bb",
  "startMarker": "34f5307915bb: running",
  "commitId": "ff7a154d5e5e9034914f0466420f0f1407f0c95e",
  "quality": "insider",
  "token": "339ac6b2-672f-4df9-892d-e30bf71c630e",
  "vscodeAgentFolder": "$HOME/.vscode-server-insiders",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code-insiders",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "printArgs": "echo -e SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\\nDISPLAY==$DISPLAY==",
  "getDownloadServerStartTrigger": "34f5307915bb:trigger_server_download",
  "getDownloadServerEndTrigger": "34f5307915bb:trigger_server_download_end",
  "getProgressDownloading": "34f5307915bb%%1%%",
  "getProgressInstalling": "34f5307915bb%%2%%"
}
[16:04:46.904] Install and start server if needed
[16:04:46.909] askpass server listening on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-d76761034877c1bd633bf9896c4dbd80f9d06cc3.sock
[16:04:46.909] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-74505fb2f39b00a129e855246f341f64035d9ec5.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","51183","-o","ConnectTimeout=99999","-p","1234","root@localhost"],"serverDataFolderName":".vscode-server-insiders","dataFilePath":"/Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json"}
[16:04:46.909] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.x2Qvkw9gNj/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.lD53RDuqJV/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-d76761034877c1bd633bf9896c4dbd80f9d06cc3.sock"}
[16:04:46.910] Spawned 65697
[16:04:46.998] > local-server-2> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
[16:04:47.000] > local-server-2> Spawned ssh, pid=65708
[16:04:47.008] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6
[16:04:47.037] stderr> debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
[16:04:47.229] Got askpass request: {"request":" root@localhost's password: "}
[16:04:47.229] Showing password prompt
[16:04:47.230] Listening for interwindow password on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-0c1c31e5cb41864216c0d858e3d7aff6a1601723.sock
[16:04:47.230] Writing password prompt to globalState
[16:04:52.030] Password dialog canceled
[16:04:52.030] Interactor signaled cancel
[16:04:52.030] Cleaning up other-window auth server
[16:04:52.086] stderr> Permission denied, please try again.
[16:04:52.188] Got askpass request: {"request":" root@localhost's password: "}
[16:04:52.218] stderr> Permission denied, please try again.
[16:04:52.327] Got askpass request: {"request":" root@localhost's password: "}
[16:04:52.357] stderr> root@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[16:04:52.358] > local-server-2> ssh child died, shutting down
[16:04:52.361] Local server exit: 0
[16:04:52.361] Received install output: local-server-2> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
local-server-2> Spawned ssh, pid=65708
OpenSSH_9.7p1, LibreSSL 3.3.6
debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
Permission denied, please try again.
Permission denied, please try again.
root@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
local-server-2> ssh child died, shutting down

[16:04:52.363] Exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d failed: Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[16:04:52.363] Existing exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d errored (Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).)
[16:04:52.363] Acquiring local install lock: /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-remote-ssh-fd5f9128-install.lock
[16:04:52.363] Initizing new exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d
[16:04:52.363] Error opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d: Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[16:04:52.366] Looking for existing server data file at /Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json
[16:04:52.366] No existing data file
[16:04:52.367] Using commit id "ff7a154d5e5e9034914f0466420f0f1407f0c95e" and quality "insider" for server
[16:04:52.368] Script variables:
 {
  "InstallExitCode.24": "AlreadyInProgress",
  "InstallExitCode.25": "ServerDownloadFailed",
  "InstallExitCode.26": "NoDownloaderAvailable",
  "InstallExitCode.27": "UnsupportedArch",
  "InstallExitCode.28": "StatusCheckFailed",
  "InstallExitCode.29": "NeedInsidersArch",
  "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
  "InstallExitCode.31": "ServerTransferFailed",
  "InstallExitCode.32": "ServerFailedToStart",
  "InstallExitCode.33": "NeedInsidersWindows",
  "InstallExitCode.34": "CreateInstallDirFailed",
  "InstallExitCode.35": "UnsupportedPlatform",
  "InstallExitCode.36": "ServerTerminatedCVE20201416",
  "InstallExitCode.37": "UnpackFailed",
  "InstallExitCode.AlreadyInProgress": "24",
  "InstallExitCode.ServerDownloadFailed": "25",
  "InstallExitCode.NoDownloaderAvailable": "26",
  "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
  "InstallExitCode.UnsupportedArch": "27",
  "InstallExitCode.StatusCheckFailed": "28",
  "InstallExitCode.NeedInsidersArch": "29",
  "InstallExitCode.ServerTransferFailed": "31",
  "InstallExitCode.ServerFailedToStart": "32",
  "InstallExitCode.NeedInsidersWindows": "33",
  "InstallExitCode.CreateInstallDirFailed": "34",
  "InstallExitCode.UnsupportedPlatform": "35",
  "InstallExitCode.ServerTerminatedCVE20201416": "36",
  "InstallExitCode.UnpackFailed": "37",
  "InstallUnpackCode.Success": "success",
  "InstallUnpackCode.Error": "error",
  "InstallUnpackCode.MissingFiles": "missingFiles",
  "uuid": "8ee1c4ede8df",
  "startMarker": "8ee1c4ede8df: running",
  "commitId": "ff7a154d5e5e9034914f0466420f0f1407f0c95e",
  "quality": "insider",
  "token": "19bb1d7d-cde6-4f22-be45-04525c9c6f45",
  "vscodeAgentFolder": "$HOME/.vscode-server-insiders",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code-insiders",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "printArgs": "echo -e SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\\nDISPLAY==$DISPLAY==",
  "getDownloadServerStartTrigger": "8ee1c4ede8df:trigger_server_download",
  "getDownloadServerEndTrigger": "8ee1c4ede8df:trigger_server_download_end",
  "getProgressDownloading": "8ee1c4ede8df%%1%%",
  "getProgressInstalling": "8ee1c4ede8df%%2%%"
}
[16:04:52.369] Install and start server if needed
[16:04:52.372] askpass server listening on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-045a5f50ced2369748a17d1edc427440b5bbcdde.sock
[16:04:52.372] Spawning local server with {"serverId":3,"ipcHandlePath":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-b9f584c47be370119c02fd88b8c05912319f2a9a.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","51183","-o","ConnectTimeout=99999","-p","1234","root@localhost"],"serverDataFolderName":".vscode-server-insiders","dataFilePath":"/Users/chrmarti/Library/Application Support/Code - Insiders/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-fd5f9128-ff7a154d5e5e9034914f0466420f0f1407f0c95e-0.114.2024082315-es/data.json"}
[16:04:52.373] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.x2Qvkw9gNj/Listeners","SHELL":"/bin/zsh","DISPLAY":"/private/tmp/com.apple.launchd.lD53RDuqJV/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/Users/chrmarti/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-0.114.2024082315/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-045a5f50ced2369748a17d1edc427440b5bbcdde.sock"}
[16:04:52.373] Spawned 65837
[16:04:52.452] > local-server-3> Running ssh connection command: ssh -v -T -D 51183 -o ConnectTimeout=99999 -p 1234 root@localhost
[16:04:52.455] > local-server-3> Spawned ssh, pid=65848
[16:04:52.460] stderr> OpenSSH_9.7p1, LibreSSL 3.3.6
[16:04:52.487] stderr> debug1: Server host key: ssh-ed25519 SHA256:6tQHoSAUu/x27BCnAFhjqZ3+fmosqlHBpko611gveqs
[16:04:52.608] Got askpass request: {"request":" root@localhost's password: "}
[16:04:52.609] Showing password prompt
[16:04:52.609] Listening for interwindow password on /var/folders/hj/vvzp2ffx69gbfmkhf5tckppm0000gn/T/vscode-ssh-askpass-4b54394781a2e8ba628be8877b5eb03eb67a49d6.sock
[16:04:52.609] Writing password prompt to globalState
[16:04:55.765] Got password response
[16:04:55.765] Interactor gave response: ******
[16:04:55.766] Cleaning up other-window auth server
[16:04:55.875] stderr> Authenticated to localhost ([127.0.0.1]:1234) using "password".
[16:04:55.923] > Last failed login: Tue Aug 27 14:04:52 UTC 2024 from 172.17.0.1 on ssh:notty
> There were 16 failed login attempts since the last successful login.
[16:04:55.935] > ready: 8ee1c4ede8df
[16:04:55.937] > Linux 6.6.32-linuxkit #1 SMP Thu Jun 13 14:13:01 UTC 2024
[16:04:55.937] Platform: linux
[16:04:55.938] > /bin/bash
[16:04:55.938] Shell: bash
[16:04:55.938] Creating bash subshell inside "bash"
[16:04:55.940] > bash version:  5.2.26(1)-release
[16:04:55.943] > 8ee1c4ede8df: running
[16:04:55.950] > Found existing installation at /root/.vscode-server-insiders...
> Starting VS Code CLI...
> printenv:
[16:04:55.951] >     SHELL=/bin/bash
>     HISTCONTROL=ignoredups
>     HOSTNAME=5435449deb49
>     HISTSIZE=1000
>     DISTTAG=f40container
>     PWD=/root
>     LOGNAME=root
>     FBR=f40
>     MOTD_SHOWN=pam
>     HOME=/root
>     LANG=C.UTF-8
>     FGC=f40
>     SSH_CONNECTION=172.17.0.1 56610 172.17.0.2 1234
>     USER=root
>     SHLVL=2
>     SSH_CLIENT=172.17.0.1 56610 1234
>     PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>     MAIL=/var/spool/mail/root
>     _=/usr/bin/printenv
[16:04:55.952] > Removing old logfile at /root/.vscode-server-insiders/.cli.ff7a154d5e5e9034914f0466420f0f1407f0c95e.log
[16:04:55.953] > Spawned remote CLI: 1570
[16:04:55.955] > Exec server process not found
[16:04:55.955] stderr> main: line 344: ps: command not found
[16:04:55.957] > 8ee1c4ede8df: start
> SSH_AUTH_SOCK====
> DISPLAY====
> listeningOn====
> osReleaseId==fedora==
> arch==aarch64==
> vscodeArch==arm64==
> bitness==64==
> tmpDir==/tmp==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==4==
> execServerToken==11aa1a1a-aaa1-1a11-aa11-11111a1a1a11==
> 8ee1c4ede8df: end
[16:04:55.957] Received install output: 
SSH_AUTH_SOCK====
DISPLAY====
listeningOn====
osReleaseId==fedora==
arch==aarch64==
vscodeArch==arm64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==4==
execServerToken==11aa1a1a-aaa1-1a11-aa11-11111a1a1a11==

[16:04:55.958] Failed to parse remote port from server output
[16:04:55.958] Terminating local server
[16:04:55.958] Exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d failed: Error
[16:04:55.958] Error opening exec server for ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74222c22706f7274223a313233347d: Error
[16:04:55.961] Local server exit: 15
chrmarti commented 2 months ago

Also on Windows (since that was my assignment):

Image

joshspicer commented 2 months ago
[16:04:46.667] stderr> main: line 344: ps: command not found

I've removed all instance of ps in the version v0.114.2024082715 (pre-release)+ of the extension.

After upgrading to this version and attempting your repro steps, i'm hitting the same scp snag as https://github.com/microsoft/vscode/issues/226753 but not seeing an ps issues.

chrmarti commented 2 months ago

v0.114.2024082715 wasn't published yet when I was testing. It works now on macOS. Currently having issues with my devbox, can test there when it is back.

chrmarti commented 2 months ago

It hangs on Windows with Remote-SSH v0.114.2024082901 (pre-release):

Image

Log:

[17:11:36.995] Log Level: 2
[17:11:37.003] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a226c6f63616c686f7374222c2275736572223a22726f6f74227d", attempt 1
[17:11:37.004] "remote.SSH.useLocalServer": false
[17:11:37.004] "remote.SSH.useExecServer": true
[17:11:37.004] "remote.SSH.showLoginTerminal": false
[17:11:37.004] "remote.SSH.remotePlatform": {"dev-server2":"linux","foobar":"windows","win11-server2":"windows"}
[17:11:37.004] "remote.SSH.path": undefined
[17:11:37.004] "remote.SSH.configFile": undefined
[17:11:37.004] "remote.SSH.useFlock": true
[17:11:37.004] "remote.SSH.lockfilesInTmp": false
[17:11:37.005] "remote.SSH.localServerDownload": auto
[17:11:37.005] "remote.SSH.remoteServerListenOnSocket": false
[17:11:37.005] "remote.SSH.showLoginTerminal": false
[17:11:37.005] "remote.SSH.defaultExtensions": []
[17:11:37.005] "remote.SSH.loglevel": 2
[17:11:37.005] "remote.SSH.enableDynamicForwarding": true
[17:11:37.005] "remote.SSH.enableRemoteCommand": false
[17:11:37.005] "remote.SSH.serverPickPortsFromRange": {}
[17:11:37.005] "remote.SSH.serverInstallPath": {}
[17:11:37.005] "remote.SSH.permitPtyAllocation": false
[17:11:37.006] "remote.SSH.preferredLocalPortRange: undefined
[17:11:37.006] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[17:11:37.016] SSH Resolver called for host: root@localhost
[17:11:37.016] Setting up SSH remote "localhost"
[17:11:37.020] VS Code version: 1.93.0-insider
[17:11:37.020] Remote-SSH version: remote-ssh@0.114.2024082901
[17:11:37.020] win32 x64
[17:11:37.022] Using commit id "ff7a154d5e5e9034914f0466420f0f1407f0c95e" and quality "insider" for server
[17:11:37.030] Script variables:
 {
  "InstallExitCode.24": "AlreadyInProgress",
  "InstallExitCode.25": "ServerDownloadFailed",
  "InstallExitCode.26": "NoDownloaderAvailable",
  "InstallExitCode.27": "UnsupportedArch",
  "InstallExitCode.28": "StatusCheckFailed",
  "InstallExitCode.29": "NeedInsidersArch",
  "InstallExitCode.30": "NoDownloaderAvailableForStatusCheck",
  "InstallExitCode.31": "ServerTransferFailed",
  "InstallExitCode.32": "ServerFailedToStart",
  "InstallExitCode.33": "NeedInsidersWindows",
  "InstallExitCode.34": "CreateInstallDirFailed",
  "InstallExitCode.35": "UnsupportedPlatform",
  "InstallExitCode.36": "ServerTerminatedCVE20201416",
  "InstallExitCode.37": "UnpackFailed",
  "InstallExitCode.38": "ChangeDirFailed",
  "InstallExitCode.AlreadyInProgress": "24",
  "InstallExitCode.ServerDownloadFailed": "25",
  "InstallExitCode.NoDownloaderAvailable": "26",
  "InstallExitCode.NoDownloaderAvailableForStatusCheck": "30",
  "InstallExitCode.UnsupportedArch": "27",
  "InstallExitCode.StatusCheckFailed": "28",
  "InstallExitCode.NeedInsidersArch": "29",
  "InstallExitCode.ServerTransferFailed": "31",
  "InstallExitCode.ServerFailedToStart": "32",
  "InstallExitCode.NeedInsidersWindows": "33",
  "InstallExitCode.CreateInstallDirFailed": "34",
  "InstallExitCode.UnsupportedPlatform": "35",
  "InstallExitCode.ServerTerminatedCVE20201416": "36",
  "InstallExitCode.UnpackFailed": "37",
  "InstallExitCode.ChangeDirFailed": "38",
  "InstallUnpackCode.Success": "success",
  "InstallUnpackCode.Error": "error",
  "InstallUnpackCode.MissingFiles": "missingFiles",
  "uuid": "510c378f2408",
  "startMarker": "510c378f2408: running",
  "commitId": "ff7a154d5e5e9034914f0466420f0f1407f0c95e",
  "quality": "insider",
  "token": "29c55acb-7a17-4a9a-9984-0ee4f611f420",
  "vscodeAgentFolder": "$HOME/.vscode-server-insiders",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code-insiders",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "getDownloadServerStartTrigger": "510c378f2408:trigger_server_download",
  "getDownloadServerEndTrigger": "510c378f2408:trigger_server_download_end",
  "getProgressDownloading": "510c378f2408%%1%%",
  "getProgressInstalling": "510c378f2408%%2%%"
}
[17:11:37.032] Install and start server if needed
[17:11:39.262] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[17:11:39.265] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[17:11:39.265] Checking ssh with "C:\Windows\ssh.exe -V"
[17:11:39.267] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[17:11:39.267] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[17:11:39.268] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[17:11:39.268] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[17:11:39.269] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[17:11:39.269] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[17:11:39.310] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3

[17:11:39.314] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 56552 "root@localhost" bash
[17:11:39.316] Terminal shell path: C:\Windows\System32\cmd.exe
[17:11:41.706] > The authenticity of host 'localhost (127.0.0.1)' can't be established.
> ED25519 key fingerprint is SHA256:Mhtu8Z6A+DCU2lnJDlvuoBgbHu4pkajyQ1y+ee2N140.
> This key is not known by any other names
> Are you sure you want to continue connecting (yes/no/[fingerprint])?]0;C:\Windows\System32\cmd.exe
[17:11:41.706] Got some output, clearing connection timeout
[17:11:41.706] Detected fingerprint confirmation message
[17:11:41.706] Showing fingerprint confirmation dialog
[17:11:43.767] Got fingerprint response: yes
[17:11:43.768] "install" wrote data to terminal: "yes"
[17:11:43.818] > yes
> Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
> root@localhost's password: 
[17:11:43.818] Showing password prompt
[17:11:47.003] Got password response
[17:11:47.003] "install" wrote data to terminal: "******"
[17:11:47.046] > 
[17:11:47.137] > 510c378f2408: running
> Script executing under PID: 1200
> Installing to /root/.vscode-server-insiders...
[17:11:47.153] > 510c378f2408%%1%%
> printenv:
>     SHELL=/bin/bash
>     DISTTAG=f40container
>     PWD=/root/.vscode-server-insiders
>     LOGNAME=root
>     FBR=f40
>     MOTD_SHOWN=pam
>     HOME=/root
>     LANG=C.UTF-8
>     FGC=f40
>     SSH_CONNECTION=172.17.0.1 39124 172.17.0.2 1234
>     USER=root
>     SHLVL=1
>     SSH_CLIENT=172.17.0.1 39124 1234
>     PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>     OLDPWD=/root
>     _=/usr/bin/printenv
> Neither wget nor curl is installed
> Trigger local server download
> 510c378f2408:trigger_server_download
> artifact==cli-alpine-x64==
> destFolder==/root/.vscode-server-insiders==
> destFolder2==/vscode-cli-ff7a154d5e5e9034914f0466420f0f1407f0c95e.tar.gz==      
> 510c378f2408:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /root/.vscode-server-insiders/vscode-cli-ff7a154d5e5e9034914f0466420
> 0f0f1407f0c95e.tar.gz.done and vscode-server.tar.gz to exist
[17:11:47.154] Got request to download on client for {"artifact":"cli-alpine-x64","destPath":"/root/.vscode-server-insiders/vscode-cli-ff7a154d5e5e9034914f0466420f0f1407f0c95e.tar.gz"}
[17:11:47.154] server download URL: https://update.code.visualstudio.com/commit:ff7a154d5e5e9034914f0466420f0f1407f0c95e/cli-alpine-x64/insider
[17:11:47.154] Downloading VS Code server locally...
[17:11:47.170] > 
> 
[17:11:47.809] Downloaded VS Code server to c:\Users\chrmarti\AppData\Local\Temp\8b31698e-5107-49c4-bfbf-e65655b2bcaf
[17:11:47.811] Renamed VS Code server to c:\Users\chrmarti\AppData\Local\Temp\vscode_server_1724944307809\vscode-cli-ff7a154d5e5e9034914f0466420f0f1407f0c95e.tar.gz
[17:11:47.814] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[17:11:47.815] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[17:11:47.816] Checking ssh with "C:\Windows\ssh.exe -V"
[17:11:47.817] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[17:11:47.817] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[17:11:47.819] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[17:11:47.819] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[17:11:47.820] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[17:11:47.820] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[17:11:47.858] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3

[17:11:47.861] Expecting scp to be next to ssh at C:\Windows\System32\OpenSSH\scp.exe
[17:11:47.861] Testing scp with "C:\Windows\System32\OpenSSH\scp.exe"
[17:11:47.952] scp exited with code: 1
[17:11:47.952] Got stderr from scp: usage: scp [-346ABCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
            [-J destination] [-l limit] [-o ssh_option] [-P port]
            [-S program] source ... target
[17:11:47.953] Copying file to remote with "C:\Windows\System32\OpenSSH\scp.exe" "vscode-cli-ff7a154d5e5e9034914f0466420f0f1407f0c95e.tar.gz" "vscode-cli-ff7a154d5e5e9034914f0466420f0f1407f0c95e.tar.gz.done" "root@localhost":"/root/.vscode-server-insiders"
[17:11:47.953] Using cwd: file:///c%3A/Users/chrmarti/AppData/Local/Temp/vscode_server_1724944307809
[17:11:47.953] Terminal shell path: C:\Windows\System32\cmd.exe
[17:11:50.315] > root@localhost's password:]0;C:\Windows\System32\cmd.exe
[17:11:50.315] Showing password prompt
[17:11:53.649] Got password response
[17:11:53.650] "Copy server to host" wrote data to terminal: "******"
[17:11:53.692] > 
[17:11:53.801] > bash: line 1: scp: command not found
> lost connection
[17:11:55.060] "Copy server to host" terminal command done
joshspicer commented 2 months ago

Looks like two issues:

First is that curl is not detected even though I see it installed in the repro

[root@127b10c12174 fedora-devcontainer]# curl --version
curl 8.6.0 (x86_64-redhat-linux-gnu) libcurl/8.6.0 OpenSSL/3.2.1 zlib/1.3.0.zlib-ng brotli/1.1.0 libidn2/2.3.7 libpsl/0.21.5 libssh/0.10.6/openssl/zlib nghttp2/1.59.0 OpenLDAP/2.6.7
Release-Date: 2024-01-31

Due to that its falling back to local download mode. It appears the command doesn't passthrough the non-standard port (edit: perhaps it does if localhost is a config alias, which could explain the below comment?)

[17:11:47.953] Copying file to remote with 

"C:\Windows\System32\OpenSSH\scp.exe" \
"vscode-cli-ff7a154d5e5e9034914f0466420f0f1407f0c95e.tar.gz" "vscode-cli-ff7a154d5e5e9034914f0466420f0f1407f0c95e.tar.gz.done" \
"root@localhost":"/root/.vscode-server-insiders"
joshspicer commented 2 months ago

It also appears that scp is also needed on the remote side (https://stackoverflow.com/a/20242139) and that's not the case for this barebones fedora image. That's where the

[17:11:53.801] > bash: line 1: scp: command not found
> lost connection

error is coming from.

joshspicer commented 2 months ago

Pre-release published that should resolve this (requires installing ssh locally on the remote host to get scp)

https://github.com/user-attachments/assets/9697e68a-8049-47f5-b431-08dc77e1c1fa