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.68k stars 296 forks source link

[Remote-SSH Bug]: "cannot establish connection" after typing in password #10407

Closed snehabn92 closed 2 weeks ago

snehabn92 commented 1 month ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

After entering password the error popup is coming up.

SSH connection to host is working fine in terminal and also i can able to connect Host using different VS extension ( SSH FS )

This issues started in after recent windows and VM box update

Image

Expected Behavior

Connection should happen after entering password

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

``` [15:51:53.888] > [15:51:56.078] > (cit@linn-sandbox) Password: [15:51:57.701] > [15:51:58.668] > 3acb6df40857: running > Script executing under PID: 36801 [15:51:58.687] > Found existing installation at /home/cit/.vscode-server... > Starting VS Code CLI... > printenv: > USER=cit > SSH_CLIENT=192.168.112.1 64407 22 > XDG_SESSION_TYPE=tty > SHLVL=0 > HOME=/home/cit > OLDPWD=/home/cit > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > LOGNAME=cit > _=/usr/bin/sh > XDG_SESSION_CLASS=user > XDG_SESSION_ID=603 > 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 > SHELL=/usr/bin/zsh > PWD=/home/cit > SSH_CONNECTION=192.168.112.1 64407 192.168.112.24 22 [15:51:58.693] > > Removing old logfile at /home/cit/.vscode-server/.cli.384ff7382de624fb94dbaf6da11977bba1ecd427.log > Spawned remote CLI: 36819 [15:51:58.704] > > Exec server process not found > sh: 406: kill: No such process [15:51:58.711] > > 3acb6df40857: start > listeningOn==== > osReleaseId==ubuntu== > arch==x86_64== > vscodeArch==x64== > bitness==64== > tmpDir==/run/user/1000== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > serverStartTime==16== > execServerToken==11aaa1aa-1aa1-1aa1-a1a1-111a111a1111== > platformDownloadPath==cli-alpine-x64== > 3acb6df40857: end [15:51:58.711] Received install output: listeningOn==== osReleaseId==ubuntu== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/1000== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== serverStartTime==16== execServerToken==11aaa1aa-1aa1-1aa1-a1a1-111a111a1111== platformDownloadPath==cli-alpine-x64== [15:51:58.711] Failed to parse remote port from server output [15:51:58.712] Resolver error: Error: at v.Create (c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:493464) at t.handleInstallOutput (c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:490786) at t.tryInstall (c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:609000) at async c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:568038 at async t.withShowDetailsEvent (c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:571282) at async P (c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:564823) at async t.resolve (c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:568697) at async c:\Users\SnehaBN\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.2024100715\out\extension.js:2:839279 [15:51:58.717] ------ [15:51:58.957] Opening exec server for ssh-remote+linn-sandbox [15:51:58.970] Initizing new exec server for ssh-remote+linn-sandbox [15:51:58.970] Using commit id "384ff7382de624fb94dbaf6da11977bba1ecd427" and quality "stable" for server [15:51:58.972] 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": "8b3ef67b8bc5", "startMarker": "8b3ef67b8bc5: running", "commitId": "384ff7382de624fb94dbaf6da11977bba1ecd427", "quality": "stable", "token": "1a111a1a-1aaa-1aa1-aa11-a1a1a111aaa1", "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": "8b3ef67b8bc5:trigger_server_download", "getDownloadServerEndTrigger": "8b3ef67b8bc5:trigger_server_download_end", "getProgressDownloading": "8b3ef67b8bc5%%1%%", "getProgressInstalling": "8b3ef67b8bc5%%2%%" } [15:51:58.972] Install and start server if needed [15:51:58.976] Running script with connection command: "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 64406 "linn-sandbox" sh [15:51:58.976] Generated SSH command: 'type "C:\Users\SnehaBN\AppData\Local\Temp\vscode-linux-multi-line-command-linn-sandbox-890950139.sh" | "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 64406 "linn-sandbox" sh' [15:51:58.976] Using connect timeout of 32 seconds [15:51:58.977] Terminal shell path: C:\WINDOWS\System32\cmd.exe [15:51:59.034] > > 3acb6df40857: start > listeningOn==== > osReleaseId==ubuntu== > arch==x86_64== > vscodeArch==x64== > bitness==64== > tmpDir==/run/user/1000== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > serverStartTime==16== > execServerToken==11aaa1aa-1aa1-1aa1-a1a1-111a111a1111== > platformDownloadPath==cli-alpine-x64== > 3acb6df40857: end > [15:51:59.106] > [?9001h[?1004h > > > > > > > > > > > > > > > > > ]0;C:\WINDOWS\System32\cmd.exe [15:51:59.106] Got some output, clearing connection timeout [15:51:59.114] > > > > > > > > > > > > > > > > > > [15:51:59.326] > (cit@linn-sandbox) Password: ```

Anything else?

No response

snehabn92 commented 1 month ago

Hey Team, Please update on this ticket

joshspicer commented 3 weeks ago

Could you please provide your entire Remote - SSH log? It seems a good chunk is missing.

Does this exact command work to ssh to your remote machine (grabbed from your logs) "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 64406 "linn-sandbox" sh

What does the configuration of your linn-sandbox host look like?

vs-code-engineering[bot] commented 2 weeks ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!