Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute command-line and remote command #10412

Open
JtMotoX opened this issue Oct 24, 2024 · 2 comments
Open

Cannot execute command-line and remote command #10412

JtMotoX opened this issue Oct 24, 2024 · 2 comments
Assignees
Labels
ssh Issue in vscode-remote SSH

Comments

@JtMotoX
Copy link

JtMotoX commented Oct 24, 2024

This issue was already discussed and reproduced in #481 but it looks like the issue was closed without being resolved and the issue still exists.

I have enabled remote.SSH.enableRemoteCommand and remote.SSH.useLocalServer.

Version Info:

>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22631 N/A Build 22631

>code --version
1.94.2
384ff7382de624fb94dbaf6da11977bba1ecd427
x64

I have configured the following in my ssh config:

Host myhost1
    RemoteCommand sudo su -
    RequestTTY yes

When I try to "Connect to host", it throws the error:

[16:35:24.158] > local-server-2> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 6364 myhost1 bash
[16:35:24.162] > local-server-2> Spawned ssh, pid=52740
[16:35:24.221] stderr> OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
[16:35:24.544] stderr> Cannot execute command-line and remote command.
[16:35:24.547] > local-server-2> ssh child died, shutting down
[16:35:24.555] Local server exit: 0
[16:35:24.556] Received install output: local-server-2> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 6364 myhost1 bash
local-server-2> Spawned ssh, pid=52740
OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
Cannot execute command-line and remote command.
local-server-2> ssh child died, shutting down

When I manually run the command in CMD that vsc is running, I get the same error:

>"C:\Program Files\Git\usr\bin\ssh.exe" myhost1 bash
Cannot execute command-line and remote command.

When I manually run the command in CMD without the bash command, it works and I am logged into the server as root as desired:

>"C:\Program Files\Git\usr\bin\ssh.exe" myhost1
$ id
uid=0(root) gid=0(root) groups=0(root)
@vs-code-engineering vs-code-engineering bot added the ssh Issue in vscode-remote SSH label Oct 25, 2024
@joshspicer
Copy link
Member

Could you please share your entire log? What version of the extension are you on?

@JtMotoX
Copy link
Author

JtMotoX commented Oct 30, 2024

Below is a connection without (successful) and with (failed) a RemoteCommand. I am using v0.115.0 of the Remote - SSH extension.

Here is a connection (successful) without a RemoteCommand specified in my ssh config:

[20:08:41.961] Log Level: 2
[20:08:41.964] SSH Resolver called for "ssh-remote+myhost1", attempt 1
[20:08:41.965] "remote.SSH.useLocalServer": true
[20:08:41.965] "remote.SSH.useExecServer": true
[20:08:41.966] "remote.SSH.path": undefined
[20:08:41.966] "remote.SSH.configFile": undefined
[20:08:41.966] "remote.SSH.useFlock": true
[20:08:41.966] "remote.SSH.lockfilesInTmp": false
[20:08:41.966] "remote.SSH.localServerDownload": auto
[20:08:41.967] "remote.SSH.remoteServerListenOnSocket": false
[20:08:41.967] "remote.SSH.showLoginTerminal": false
[20:08:41.967] "remote.SSH.defaultExtensions": []
[20:08:41.967] "remote.SSH.loglevel": 2
[20:08:41.967] "remote.SSH.enableDynamicForwarding": true
[20:08:41.967] "remote.SSH.enableRemoteCommand": false
[20:08:41.967] "remote.SSH.serverPickPortsFromRange": {}
[20:08:41.967] "remote.SSH.serverInstallPath": {}
[20:08:41.967] "remote.SSH.permitPtyAllocation": false
[20:08:41.968] "remote.SSH.preferredLocalPortRange: undefined
[20:08:41.968] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[20:08:41.978] VS Code version: 1.94.2
[20:08:41.978] Remote-SSH version: [email protected]
[20:08:41.978] win32 x64
[20:08:42.055] SSH Resolver called for host: myhost1
[20:08:42.055] Setting up SSH remote "myhost1"
[20:08:42.062] Acquiring local install lock: C:\Users\myuser\AppData\Local\Temp\vscode-remote-ssh-951166e1-install.lock
[20:08:42.064] Looking for existing server data file at c:\Users\myuser\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-951166e1-384ff7382de624fb94dbaf6da11977bba1ecd427-0.115.0-es\data.json
[20:08:42.065] No existing data file
[20:08:42.065] Using commit id "384ff7382de624fb94dbaf6da11977bba1ecd427" and quality "stable" for server
[20:08:42.067] 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": "a46c3d6e98f1",
  "startMarker": "a46c3d6e98f1: running",
  "commitId": "384ff7382de624fb94dbaf6da11977bba1ecd427",
  "quality": "stable",
  "token": "a111a111-aa1a-1aa1-11aa-11aa1a1aaa1a",
  "vscodeAgentFolder": "$HOME/.vscode-server",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "getDownloadServerStartTrigger": "a46c3d6e98f1:trigger_server_download",
  "getDownloadServerEndTrigger": "a46c3d6e98f1:trigger_server_download_end",
  "getProgressDownloading": "a46c3d6e98f1%%1%%",
  "getProgressInstalling": "a46c3d6e98f1%%2%%"
}
[20:08:42.069] Install and start server if needed
[20:08:42.138] Checking ssh with "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\ssh.exe -V"
[20:08:42.140] Got error from ssh: spawn C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\ssh.exe ENOENT
[20:08:42.140] Checking ssh with "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\libnvvp\ssh.exe -V"
[20:08:42.141] Got error from ssh: spawn C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\libnvvp\ssh.exe ENOENT
[20:08:42.141] Checking ssh with "C:\Program Files (x86)\VMware\VMware Player\bin\ssh.exe -V"
[20:08:42.142] Got error from ssh: spawn C:\Program Files (x86)\VMware\VMware Player\bin\ssh.exe ENOENT
[20:08:42.142] Checking ssh with "C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe -V"
[20:08:42.143] Got error from ssh: spawn C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe ENOENT
[20:08:42.143] Checking ssh with "C:\Program Files\Razer Chroma SDK\bin\ssh.exe -V"
[20:08:42.144] Got error from ssh: spawn C:\Program Files\Razer Chroma SDK\bin\ssh.exe ENOENT
[20:08:42.144] Checking ssh with "C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe -V"
[20:08:42.145] Got error from ssh: spawn C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe ENOENT
[20:08:42.146] Checking ssh with "C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe -V"
[20:08:42.146] Got error from ssh: spawn C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe ENOENT
[20:08:42.147] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[20:08:42.148] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[20:08:42.148] Checking ssh with "C:\Windows\ssh.exe -V"
[20:08:42.149] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[20:08:42.149] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[20:08:42.150] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[20:08:42.150] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[20:08:42.151] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[20:08:42.151] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[20:08:42.178] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:08:42.181] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[20:08:42.182] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[20:08:42.183] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[20:08:42.183] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[20:08:42.184] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[20:08:42.184] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[20:08:42.185] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[20:08:42.185] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[20:08:42.186] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[20:08:42.211] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:08:42.214] Checking ssh with "C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\ssh.exe -V"
[20:08:42.215] Got error from ssh: spawn C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\ssh.exe ENOENT
[20:08:42.215] Checking ssh with "C:\Users\myuser\.dnx\bin\ssh.exe -V"
[20:08:42.215] Got error from ssh: spawn C:\Users\myuser\.dnx\bin\ssh.exe ENOENT
[20:08:42.216] Checking ssh with "C:\Program Files\Microsoft DNX\Dnvm\ssh.exe -V"
[20:08:42.216] Got error from ssh: spawn C:\Program Files\Microsoft DNX\Dnvm\ssh.exe ENOENT
[20:08:42.216] Checking ssh with "C:\Program Files\Microsoft SQL Server\130\Tools\Binn\ssh.exe -V"
[20:08:42.217] Got error from ssh: spawn C:\Program Files\Microsoft SQL Server\130\Tools\Binn\ssh.exe ENOENT
[20:08:42.217] Checking ssh with "C:\Program Files\filebrowser\ssh.exe -V"
[20:08:42.218] Got error from ssh: spawn C:\Program Files\filebrowser\ssh.exe ENOENT
[20:08:42.218] Checking ssh with "C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\ssh.exe -V"
[20:08:42.219] Got error from ssh: spawn C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\ssh.exe ENOENT
[20:08:42.219] Checking ssh with "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe -V"
[20:08:42.220] Got error from ssh: spawn C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe ENOENT
[20:08:42.220] Checking ssh with "C:\Program Files\dotnet\ssh.exe -V"
[20:08:42.221] Got error from ssh: spawn C:\Program Files\dotnet\ssh.exe ENOENT
[20:08:42.222] Checking ssh with "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[20:08:42.223] Got error from ssh: spawn C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[20:08:42.223] Checking ssh with "C:\ProgramData\chocolatey\bin\ssh.exe -V"
[20:08:42.224] Got error from ssh: spawn C:\ProgramData\chocolatey\bin\ssh.exe ENOENT
[20:08:42.224] Checking ssh with "C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\ssh.exe -V"
[20:08:42.225] Got error from ssh: spawn C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\ssh.exe ENOENT
[20:08:42.225] Checking ssh with "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ssh.exe -V"
[20:08:42.226] Got error from ssh: spawn C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ssh.exe ENOENT
[20:08:42.226] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[20:08:42.227] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[20:08:42.228] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[20:08:42.229] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[20:08:42.229] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[20:08:42.231] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[20:08:42.231] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[20:08:42.232] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[20:08:42.232] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[20:08:42.258] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:08:42.261] Checking ssh with "C:\Program Files\Tailscale\ssh.exe -V"
[20:08:42.262] Got error from ssh: spawn C:\Program Files\Tailscale\ssh.exe ENOENT
[20:08:42.263] Checking ssh with "C:\Program Files\Git\cmd\ssh.exe -V"
[20:08:42.263] Got error from ssh: spawn C:\Program Files\Git\cmd\ssh.exe ENOENT
[20:08:42.264] Checking ssh with "C:\Program Files\Rancher Desktop\resources\resources\win32\bin\ssh.exe -V"
[20:08:42.264] Got error from ssh: spawn C:\Program Files\Rancher Desktop\resources\resources\win32\bin\ssh.exe ENOENT
[20:08:42.265] Checking ssh with "C:\Program Files\Rancher Desktop\resources\resources\linux\bin\ssh.exe -V"
[20:08:42.265] Got error from ssh: spawn C:\Program Files\Rancher Desktop\resources\resources\linux\bin\ssh.exe ENOENT
[20:08:42.266] Checking ssh with "C:\Program Files\PuTTY\ssh.exe -V"
[20:08:42.266] Got error from ssh: spawn C:\Program Files\PuTTY\ssh.exe ENOENT
[20:08:42.267] Checking ssh with "C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.3.2\ssh.exe -V"
[20:08:42.267] Got error from ssh: spawn C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.3.2\ssh.exe ENOENT
[20:08:42.268] Checking ssh with "C:\Users\myuser\scoop\shims\ssh.exe -V"
[20:08:42.269] Got error from ssh: spawn C:\Users\myuser\scoop\shims\ssh.exe ENOENT
[20:08:42.269] Checking ssh with "C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[20:08:42.270] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[20:08:42.270] Checking ssh with "C:\Users\myuser\.dotnet\tools\ssh.exe -V"
[20:08:42.271] Got error from ssh: spawn C:\Users\myuser\.dotnet\tools\ssh.exe ENOENT
[20:08:42.271] Checking ssh with "C:\Users\myuser\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe -V"
[20:08:42.272] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe ENOENT
[20:08:42.273] Checking ssh with "C:\Users\myuser\AppData\Local\rancher\ssh.exe -V"
[20:08:42.274] Got error from ssh: spawn C:\Users\myuser\AppData\Local\rancher\ssh.exe ENOENT
[20:08:42.274] Checking ssh with "C:\Users\myuser\.dotnet\tools\ssh.exe -V"
[20:08:42.275] Got error from ssh: spawn C:\Users\myuser\.dotnet\tools\ssh.exe ENOENT
[20:08:42.275] Checking ssh with "C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[20:08:42.277] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[20:08:42.277] Checking ssh with "C:\Users\myuser\AppData\Local\Microsoft\WinGet\Links\ssh.exe -V"
[20:08:42.278] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Microsoft\WinGet\Links\ssh.exe ENOENT
[20:08:42.278] Checking ssh with "C:\Users\myuser\AppData\Local\Programs\Lens\resources\cli\bin\ssh.exe -V"
[20:08:42.280] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Programs\Lens\resources\cli\bin\ssh.exe ENOENT
[20:08:42.280] Checking ssh with "C:\Program Files\Git\bin\ssh.exe -V"
[20:08:42.281] Got error from ssh: spawn C:\Program Files\Git\bin\ssh.exe ENOENT
[20:08:42.281] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[20:08:42.307] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:08:42.310] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[20:08:42.342] > OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024

[20:08:42.472] askpass server listening on \\.\pipe\vscode-ssh-askpass-5106d697abfe982f5f4359a1500403d08035f929-sock
[20:08:42.473] Spawning local server with {"serverId":1,"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-20f5e20c5a516c5feedec297d802b7217f9a8418-sock","sshCommand":"C:\\Program Files\\Git\\usr\\bin\\ssh.exe","sshArgs":["-v","-T","-D","11459","myhost1","bash"],"serverDataFolderName":".vscode-server","dataFilePath":"c:\\Users\\myuser\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-951166e1-384ff7382de624fb94dbaf6da11977bba1ecd427-0.115.0-es\\data.json"}
[20:08:42.473] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\myuser\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.115.0\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\myuser\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\myuser\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.115.0\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-5106d697abfe982f5f4359a1500403d08035f929-sock"}
[20:08:42.481] Spawned 8000
[20:08:42.481] Using connect timeout of 17 seconds
[20:08:42.558] > local-server-1> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 11459 myhost1 bash
[20:08:42.561] > local-server-1> Spawned ssh, pid=11740
[20:08:42.626] stderr> OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
[20:08:43.033] stderr> debug1: Server host key: ssh-ed25519 SHA256:d53gClwN8FjCWcHsVR3na+RaOTKPAUFYMxfsOW329YU
[20:08:43.033] stderr> Warning: Permanently added 'myhost1' (ED25519) to the list of known hosts.
[20:08:43.084] stderr> Authenticated to myhost1 ([192.168.168.11]:22) using "publickey".
[20:08:44.052] > ready: a46c3d6e98f1
[20:08:44.057] > Linux 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024
[20:08:44.057] Platform: linux
[20:08:44.071] > /usr/bin/zsh
[20:08:44.072] Parent Shell: zsh
[20:08:44.072] Parent Shell pid: 8000
[20:08:44.088] > 3165028
[20:08:44.088] Waiting for pid of spawned 'sh' subshell: '3165028'...
[20:08:44.104] > a46c3d6e98f1: running
> Script executing under PID: 3165028
[20:08:44.114] > Found existing installation at /home/docker/.vscode-server...
> Starting VS Code CLI...
> printenv:
[20:08:44.115] >     USER=docker
>     SSH_CLIENT=192.168.168.40 46756 22
>     XDG_SESSION_TYPE=tty
>     SHLVL=1
>     MOTD_SHOWN=pam
>     HOME=/home/docker
>     OLDPWD=/home/docker
>     DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
>     LOGNAME=docker
>     _=/usr/bin/sh
>     XDG_SESSION_CLASS=user
>     XDG_SESSION_ID=1260
>     PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
>     XDG_RUNTIME_DIR=/run/user/1000
>     LANG=en_US.UTF-8
>     SHELL=/usr/bin/zsh
>     PWD=/home/docker
>     SSH_CONNECTION=192.168.168.40 46756 192.168.168.11 22
[20:08:44.116] > Removing old logfile at /home/docker/.vscode-server/.cli.384ff7382de624fb94dbaf6da11977bba1ecd427.log
[20:08:44.117] > Spawned remote CLI: 3165046
[20:08:44.120] > Waiting for server log...
[20:08:44.162] > Waiting for server log...
[20:08:44.200] > a46c3d6e98f1: start
> listeningOn==127.0.0.1:34859==
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==83==
> execServerToken==a111a111-aa1a-1aa1-11aa-11aa1a1aaa1a==
> platformDownloadPath==cli-alpine-x64==
> a46c3d6e98f1: end
[20:08:44.200] Received install output: 
listeningOn==127.0.0.1:34859==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==83==
execServerToken==a111a111-aa1a-1aa1-11aa-11aa1a1aaa1a==
platformDownloadPath==cli-alpine-x64==

[20:08:44.200] Remote server is listening on port 34859
[20:08:44.201] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":34859},"osReleaseId":"ubuntu","arch":"x86_64","tmpDir":"/run/user/1000","platform":"linux","execServerToken":"a111a111-aa1a-1aa1-11aa-11aa1a1aaa1a"},"serverStartTime":83,"installUnpackCode":""}
[20:08:44.201] Persisting server connection details to c:\Users\myuser\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-951166e1-384ff7382de624fb94dbaf6da11977bba1ecd427-0.115.0-es\data.json
[20:08:44.266] Starting forwarding server. local port 11464 -> socksPort 11459 -> remotePort 34859
[20:08:44.267] Forwarding server listening on port 11464
[20:08:44.267] Waiting for ssh tunnel to be ready
[20:08:44.268] [Forwarding server port 11464] Got connection 0
[20:08:44.270] Tunneled port 34859 to local port 11464
[20:08:44.270] Resolved "ssh-remote+myhost1" to "port 11464"
[20:08:44.278] Initizing new exec server for ssh-remote+myhost1
[20:08:44.278] Resolving exec server at port 11464
[20:08:44.280] [Forwarding server port 11464] Got connection 1
[20:08:44.355] Exec server for ssh-remote+myhost1 created and cached
[20:08:44.436] ------

Here is a connection (failed) with RemoteCommand sudo su - in my ssh config:

[20:06:17.220] Log Level: 2
[20:06:17.223] SSH Resolver called for "ssh-remote+myhost1", attempt 1
[20:06:17.224] "remote.SSH.useLocalServer": true
[20:06:17.224] "remote.SSH.useExecServer": true
[20:06:17.224] "remote.SSH.path": undefined
[20:06:17.224] "remote.SSH.configFile": undefined
[20:06:17.224] "remote.SSH.useFlock": true
[20:06:17.224] "remote.SSH.lockfilesInTmp": false
[20:06:17.225] "remote.SSH.localServerDownload": auto
[20:06:17.225] "remote.SSH.remoteServerListenOnSocket": false
[20:06:17.225] "remote.SSH.showLoginTerminal": false
[20:06:17.225] "remote.SSH.defaultExtensions": []
[20:06:17.225] "remote.SSH.loglevel": 2
[20:06:17.225] "remote.SSH.enableDynamicForwarding": true
[20:06:17.225] "remote.SSH.enableRemoteCommand": false
[20:06:17.225] "remote.SSH.serverPickPortsFromRange": {}
[20:06:17.225] "remote.SSH.serverInstallPath": {}
[20:06:17.226] "remote.SSH.permitPtyAllocation": false
[20:06:17.226] "remote.SSH.preferredLocalPortRange: undefined
[20:06:17.226] "remote.SSH.useCurlAndWgetConfigurationFiles: false
[20:06:17.231] VS Code version: 1.94.2
[20:06:17.231] Remote-SSH version: [email protected]
[20:06:17.232] win32 x64
[20:06:17.300] SSH Resolver called for host: myhost1
[20:06:17.300] Setting up SSH remote "myhost1"
[20:06:17.307] Acquiring local install lock: C:\Users\myuser\AppData\Local\Temp\vscode-remote-ssh-951166e1-install.lock
[20:06:17.309] Looking for existing server data file at c:\Users\myuser\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-ssh\vscode-ssh-host-951166e1-384ff7382de624fb94dbaf6da11977bba1ecd427-0.115.0-es\data.json
[20:06:17.309] No existing data file
[20:06:17.309] Using commit id "384ff7382de624fb94dbaf6da11977bba1ecd427" and quality "stable" for server
[20:06:17.312] 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": "14a0bc3782eb",
  "startMarker": "14a0bc3782eb: running",
  "commitId": "384ff7382de624fb94dbaf6da11977bba1ecd427",
  "quality": "stable",
  "token": "111a1111-a11a-11aa-aa11-11111111a111",
  "vscodeAgentFolder": "$HOME/.vscode-server",
  "allowClientDownload": "1",
  "forceClientDownload": "0",
  "cliNameInArchive": "code",
  "ignoreWgetConfigFlag": " --no-config ",
  "ignoreCurlConfigFlag": " --disable ",
  "wgetTriesSegment": "--tries=1",
  "listenArgs": "--on-host=127.0.0.1 --on-port",
  "getDownloadServerStartTrigger": "14a0bc3782eb:trigger_server_download",
  "getDownloadServerEndTrigger": "14a0bc3782eb:trigger_server_download_end",
  "getProgressDownloading": "14a0bc3782eb%%1%%",
  "getProgressInstalling": "14a0bc3782eb%%2%%"
}
[20:06:17.314] Install and start server if needed
[20:06:17.382] Checking ssh with "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\ssh.exe -V"
[20:06:17.384] Got error from ssh: spawn C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\ssh.exe ENOENT
[20:06:17.384] Checking ssh with "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\libnvvp\ssh.exe -V"
[20:06:17.385] Got error from ssh: spawn C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\libnvvp\ssh.exe ENOENT
[20:06:17.385] Checking ssh with "C:\Program Files (x86)\VMware\VMware Player\bin\ssh.exe -V"
[20:06:17.386] Got error from ssh: spawn C:\Program Files (x86)\VMware\VMware Player\bin\ssh.exe ENOENT
[20:06:17.386] Checking ssh with "C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe -V"
[20:06:17.387] Got error from ssh: spawn C:\Program Files (x86)\Razer Chroma SDK\bin\ssh.exe ENOENT
[20:06:17.387] Checking ssh with "C:\Program Files\Razer Chroma SDK\bin\ssh.exe -V"
[20:06:17.388] Got error from ssh: spawn C:\Program Files\Razer Chroma SDK\bin\ssh.exe ENOENT
[20:06:17.388] Checking ssh with "C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe -V"
[20:06:17.389] Got error from ssh: spawn C:\Program Files (x86)\Razer\ChromaBroadcast\bin\ssh.exe ENOENT
[20:06:17.389] Checking ssh with "C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe -V"
[20:06:17.390] Got error from ssh: spawn C:\Program Files\Razer\ChromaBroadcast\bin\ssh.exe ENOENT
[20:06:17.390] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[20:06:17.391] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[20:06:17.392] Checking ssh with "C:\Windows\ssh.exe -V"
[20:06:17.392] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[20:06:17.393] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[20:06:17.394] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[20:06:17.394] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[20:06:17.395] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[20:06:17.395] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[20:06:17.418] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:06:17.420] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[20:06:17.421] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[20:06:17.421] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[20:06:17.422] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[20:06:17.422] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[20:06:17.423] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[20:06:17.423] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[20:06:17.424] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[20:06:17.424] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[20:06:17.445] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:06:17.448] Checking ssh with "C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\ssh.exe -V"
[20:06:17.448] Got error from ssh: spawn C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\ssh.exe ENOENT
[20:06:17.449] Checking ssh with "C:\Users\myuser\.dnx\bin\ssh.exe -V"
[20:06:17.449] Got error from ssh: spawn C:\Users\myuser\.dnx\bin\ssh.exe ENOENT
[20:06:17.449] Checking ssh with "C:\Program Files\Microsoft DNX\Dnvm\ssh.exe -V"
[20:06:17.450] Got error from ssh: spawn C:\Program Files\Microsoft DNX\Dnvm\ssh.exe ENOENT
[20:06:17.450] Checking ssh with "C:\Program Files\Microsoft SQL Server\130\Tools\Binn\ssh.exe -V"
[20:06:17.451] Got error from ssh: spawn C:\Program Files\Microsoft SQL Server\130\Tools\Binn\ssh.exe ENOENT
[20:06:17.451] Checking ssh with "C:\Program Files\filebrowser\ssh.exe -V"
[20:06:17.452] Got error from ssh: spawn C:\Program Files\filebrowser\ssh.exe ENOENT
[20:06:17.452] Checking ssh with "C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\ssh.exe -V"
[20:06:17.453] Got error from ssh: spawn C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\ssh.exe ENOENT
[20:06:17.453] Checking ssh with "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe -V"
[20:06:17.454] Got error from ssh: spawn C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe ENOENT
[20:06:17.454] Checking ssh with "C:\Program Files\dotnet\ssh.exe -V"
[20:06:17.455] Got error from ssh: spawn C:\Program Files\dotnet\ssh.exe ENOENT
[20:06:17.455] Checking ssh with "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[20:06:17.456] Got error from ssh: spawn C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[20:06:17.456] Checking ssh with "C:\ProgramData\chocolatey\bin\ssh.exe -V"
[20:06:17.457] Got error from ssh: spawn C:\ProgramData\chocolatey\bin\ssh.exe ENOENT
[20:06:17.457] Checking ssh with "C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\ssh.exe -V"
[20:06:17.458] Got error from ssh: spawn C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\ssh.exe ENOENT
[20:06:17.458] Checking ssh with "C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ssh.exe -V"
[20:06:17.460] Got error from ssh: spawn C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ssh.exe ENOENT
[20:06:17.460] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V"
[20:06:17.461] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT
[20:06:17.461] Checking ssh with "C:\WINDOWS\ssh.exe -V"
[20:06:17.462] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT
[20:06:17.462] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V"
[20:06:17.463] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT
[20:06:17.464] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[20:06:17.465] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[20:06:17.465] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[20:06:17.488] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:06:17.490] Checking ssh with "C:\Program Files\Tailscale\ssh.exe -V"
[20:06:17.491] Got error from ssh: spawn C:\Program Files\Tailscale\ssh.exe ENOENT
[20:06:17.491] Checking ssh with "C:\Program Files\Git\cmd\ssh.exe -V"
[20:06:17.492] Got error from ssh: spawn C:\Program Files\Git\cmd\ssh.exe ENOENT
[20:06:17.492] Checking ssh with "C:\Program Files\Rancher Desktop\resources\resources\win32\bin\ssh.exe -V"
[20:06:17.493] Got error from ssh: spawn C:\Program Files\Rancher Desktop\resources\resources\win32\bin\ssh.exe ENOENT
[20:06:17.493] Checking ssh with "C:\Program Files\Rancher Desktop\resources\resources\linux\bin\ssh.exe -V"
[20:06:17.494] Got error from ssh: spawn C:\Program Files\Rancher Desktop\resources\resources\linux\bin\ssh.exe ENOENT
[20:06:17.494] Checking ssh with "C:\Program Files\PuTTY\ssh.exe -V"
[20:06:17.495] Got error from ssh: spawn C:\Program Files\PuTTY\ssh.exe ENOENT
[20:06:17.495] Checking ssh with "C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.3.2\ssh.exe -V"
[20:06:17.496] Got error from ssh: spawn C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.3.2\ssh.exe ENOENT
[20:06:17.496] Checking ssh with "C:\Users\myuser\scoop\shims\ssh.exe -V"
[20:06:17.497] Got error from ssh: spawn C:\Users\myuser\scoop\shims\ssh.exe ENOENT
[20:06:17.497] Checking ssh with "C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[20:06:17.498] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[20:06:17.498] Checking ssh with "C:\Users\myuser\.dotnet\tools\ssh.exe -V"
[20:06:17.499] Got error from ssh: spawn C:\Users\myuser\.dotnet\tools\ssh.exe ENOENT
[20:06:17.499] Checking ssh with "C:\Users\myuser\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe -V"
[20:06:17.500] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Programs\Microsoft VS Code\bin\ssh.exe ENOENT
[20:06:17.500] Checking ssh with "C:\Users\myuser\AppData\Local\rancher\ssh.exe -V"
[20:06:17.501] Got error from ssh: spawn C:\Users\myuser\AppData\Local\rancher\ssh.exe ENOENT
[20:06:17.501] Checking ssh with "C:\Users\myuser\.dotnet\tools\ssh.exe -V"
[20:06:17.502] Got error from ssh: spawn C:\Users\myuser\.dotnet\tools\ssh.exe ENOENT
[20:06:17.503] Checking ssh with "C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe -V"
[20:06:17.504] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Microsoft\WindowsApps\ssh.exe ENOENT
[20:06:17.504] Checking ssh with "C:\Users\myuser\AppData\Local\Microsoft\WinGet\Links\ssh.exe -V"
[20:06:17.505] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Microsoft\WinGet\Links\ssh.exe ENOENT
[20:06:17.505] Checking ssh with "C:\Users\myuser\AppData\Local\Programs\Lens\resources\cli\bin\ssh.exe -V"
[20:06:17.506] Got error from ssh: spawn C:\Users\myuser\AppData\Local\Programs\Lens\resources\cli\bin\ssh.exe ENOENT
[20:06:17.507] Checking ssh with "C:\Program Files\Git\bin\ssh.exe -V"
[20:06:17.508] Got error from ssh: spawn C:\Program Files\Git\bin\ssh.exe ENOENT
[20:06:17.508] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V"
[20:06:17.530] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

[20:06:17.532] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[20:06:17.561] > OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024

[20:06:17.678] askpass server listening on \\.\pipe\vscode-ssh-askpass-8ed1a9eeed36a167d076dbde45f7ad13accc4973-sock
[20:06:17.678] Spawning local server with {"serverId":1,"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-e2f8d6d04bbd533b8a81960245b730cc5333d7de-sock","sshCommand":"C:\\Program Files\\Git\\usr\\bin\\ssh.exe","sshArgs":["-v","-T","-D","11333","myhost1","bash"],"serverDataFolderName":".vscode-server","dataFilePath":"c:\\Users\\myuser\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-951166e1-384ff7382de624fb94dbaf6da11977bba1ecd427-0.115.0-es\\data.json"}
[20:06:17.678] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\myuser\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.115.0\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\myuser\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\myuser\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.115.0\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-8ed1a9eeed36a167d076dbde45f7ad13accc4973-sock"}
[20:06:17.686] Spawned 39972
[20:06:17.687] Using connect timeout of 17 seconds
[20:06:17.761] > local-server-1> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 11333 myhost1 bash
[20:06:17.765] > local-server-1> Spawned ssh, pid=40684
[20:06:17.816] stderr> OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
[20:06:18.126] stderr> Cannot execute command-line and remote command.
[20:06:18.129] > local-server-1> ssh child died, shutting down
[20:06:18.138] Local server exit: 0
[20:06:18.138] Received install output: local-server-1> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 11333 myhost1 bash
local-server-1> Spawned ssh, pid=40684
OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
Cannot execute command-line and remote command.
local-server-1> ssh child died, shutting down

[20:06:18.138] Failed to parse remote port from server output
[20:06:18.140] Resolver error: Error: 
	at v.Create (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:493431)
	at t.handleInstallOutput (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:490753)
	at e (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:545236)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:567561
	at async t.withShowDetailsEvent (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:571256)
	at async c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:541941
	at async T (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:539992)
	at async t.resolveWithLocalServer (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:541481)
	at async P (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:564693)
	at async t.resolve (c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:568667)
	at async c:\Users\myuser\.vscode\extensions\ms-vscode-remote.remote-ssh-0.115.0\out\extension.js:2:839059
[20:06:18.226] ------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants