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.55k stars 263 forks source link

[Remote-SSH Bug]: Refresh to provide SSH credentials when SSHing to remote pc and try to open docker conteiners drop-down their #8242

Open YoniChechik opened 1 year ago

YoniChechik commented 1 year ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It connects successfully

->

No response

Expected Behavior

don't ask for refresh (+plus another password)

Steps To Reproduce

  1. open vscode
  2. open remote pc in vscode extension
  3. in remote extension- go to conteiners (to find docker in remote pc).
  4. get the following: image

Remote-SSH Log

Remote-SSH Log

``` [08:33:27.345] Log Level: 2 [08:33:27.364] SSH Resolver called for "ssh-remote+simplex_mercury", attempt 1 [08:33:27.365] "remote.SSH.useLocalServer": false [08:33:27.365] "remote.SSH.showLoginTerminal": false [08:33:27.365] "remote.SSH.remotePlatform": {"simplex_mercury":"linux","simplex_pluto":"linux"} [08:33:27.366] "remote.SSH.path": undefined [08:33:27.366] "remote.SSH.configFile": undefined [08:33:27.366] "remote.SSH.useFlock": true [08:33:27.366] "remote.SSH.lockfilesInTmp": false [08:33:27.367] "remote.SSH.localServerDownload": auto [08:33:27.367] "remote.SSH.remoteServerListenOnSocket": false [08:33:27.367] "remote.SSH.showLoginTerminal": false [08:33:27.367] "remote.SSH.defaultExtensions": [] [08:33:27.368] "remote.SSH.loglevel": 2 [08:33:27.368] "remote.SSH.enableDynamicForwarding": true [08:33:27.368] "remote.SSH.enableRemoteCommand": false [08:33:27.368] "remote.SSH.serverPickPortsFromRange": {} [08:33:27.369] "remote.SSH.serverInstallPath": {} [08:33:27.375] VS Code version: 1.76.2 [08:33:27.376] Remote-SSH version: remote-ssh@0.98.0 [08:33:27.376] win32 x64 [08:33:27.377] SSH Resolver called for host: simplex_mercury [08:33:27.378] Setting up SSH remote "simplex_mercury" [08:33:27.383] Using commit id "ee2b180d582a7f601fa6ecfdad8d9fd269ab1884" and quality "stable" for server [08:33:27.389] Install and start server if needed [08:33:27.394] Checking ssh with "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\ssh.exe -V" [08:33:27.397] Got error from ssh: spawn C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\ssh.exe ENOENT [08:33:27.398] Checking ssh with "C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\ssh.exe -V" [08:33:27.399] Got error from ssh: spawn C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\ssh.exe ENOENT [08:33:27.400] Checking ssh with "C:\Windows\system32\ssh.exe -V" [08:33:27.402] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT [08:33:27.402] Checking ssh with "C:\Windows\ssh.exe -V" [08:33:27.404] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT [08:33:27.405] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V" [08:33:27.407] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT [08:33:27.407] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V" [08:33:27.409] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [08:33:27.409] Checking ssh with "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL\ssh.exe -V" [08:33:27.410] Got error from ssh: spawn C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL\ssh.exe ENOENT [08:33:27.410] Checking ssh with "C:\Program Files\Intel\Intel(R) Management Engine Components\DAL\ssh.exe -V" [08:33:27.411] Got error from ssh: spawn C:\Program Files\Intel\Intel(R) Management Engine Components\DAL\ssh.exe ENOENT [08:33:27.412] Checking ssh with "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT\ssh.exe -V" [08:33:27.414] Got error from ssh: spawn C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT\ssh.exe ENOENT [08:33:27.414] Checking ssh with "C:\Program Files\Intel\Intel(R) Management Engine Components\IPT\ssh.exe -V" [08:33:27.416] Got error from ssh: spawn C:\Program Files\Intel\Intel(R) Management Engine Components\IPT\ssh.exe ENOENT [08:33:27.416] Checking ssh with "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe -V" [08:33:27.417] Got error from ssh: spawn C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\ssh.exe ENOENT [08:33:27.418] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [08:33:27.419] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [08:33:27.419] Checking ssh with "C:\WINDOWS\ssh.exe -V" [08:33:27.421] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [08:33:27.421] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [08:33:27.422] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [08:33:27.422] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [08:33:27.424] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [08:33:27.424] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [08:33:27.458] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3 [08:33:27.462] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 59870 "simplex_mercury" bash [08:33:27.464] Terminal shell path: C:\WINDOWS\System32\cmd.exe [08:33:27.940] > yoni@192.168.1.92's password:]0;C:\WINDOWS\System32\cmd.exe [08:33:27.940] Got some output, clearing connection timeout [08:33:27.941] Showing password prompt [08:33:32.083] Got password response [08:33:32.084] "install" wrote data to terminal: "***********" [08:33:32.111] > [08:33:32.343] > 55cf095b311d: running [08:33:32.358] > Acquiring lock on /home/yoni/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/vscode-remote-lock.yoni.ee2b180d582a7f601fa6ecfdad8d9fd269ab1884 > Found existing installation at /home/yoni/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884... > Checking /home/yoni/.vscode-server/.ee2b180d582a7f601fa6ecfdad8d9fd269ab1884.log and /home/yoni/.vscode-server/.ee2b180d582a7f601fa6ecfdad8d9fd269ab1884.pid for a running server > Looking for server with pid: 2188614 > Running ssh connection command... /home/yoni/.vscode-server/bin/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/bin/code-server --start-server --host=127.0.0.1 --accept-server-license-terms --enable-remote-auto-shutdown --port=0 --telemetry-level all &> "/home/yoni/.vscode-server/.ee2b180d582a7f601fa6ecfdad8d9fd269ab1884.log" < /dev/null > printenv: > SHELL=/bin/bash > LANGUAGE=en_IL:en > PWD=/home/yoni > LOGNAME=yoni > XDG_SESSION_TYPE=tty > MOTD_SHOWN=pam > HOME=/home/yoni > LANG=en_IL > VSCODE_AGENT_FOLDER=/home/yoni/.vscode-server > SSH_CONNECTION=192.168.1.110 59871 192.168.1.92 22 > XDG_SESSION_CLASS=user > USER=yoni > SHLVL=0 > XDG_SESSION_ID=30 > XDG_RUNTIME_DIR=/run/user/1001 > SSH_CLIENT=192.168.1.110 59871 22 > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > s:/usr/local/games:/snap/bin > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus > _=/usr/bin/printenv > Removing old logfile at /home/yoni/.vscode-server/.ee2b180d582a7f601fa6ecfdad8d9 > 9fd269ab1884.log > Spawned remote server: 15598 > Waiting for server log... [08:33:32.375] > [08:33:32.396] > > * > * Visual Studio Code Server > * > * By using the software, you agree to > * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-lice > ense) and > * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacyst > tatement). > * > > 55cf095b311d: start > SSH_AUTH_SOCK==== > DISPLAY==== > webUiAccessToken==== > listeningOn==36023== > osReleaseId==ubuntu== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==34== > connectionToken==1aa11111-a111-111a-a1a1-a11a1a111111== > 55cf095b311d: end [08:33:32.396] Received install output: SSH_AUTH_SOCK==== DISPLAY==== webUiAccessToken==== listeningOn==36023== osReleaseId==ubuntu== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==34== connectionToken==1aa11111-a111-111a-a1a1-a11a1a111111== [08:33:32.396] Remote server is listening on 36023 [08:33:32.396] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":36023},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/1001","platform":"linux","connectionToken":"1aa11111-a111-111a-a1a1-a11a1a111111"},"serverStartTime":34,"installUnpackCode":""} [08:33:32.400] Starting forwarding server. localPort 59874 -> socksPort 59870 -> remotePort 36023 [08:33:32.401] Forwarding server listening on 59874 [08:33:32.401] Waiting for ssh tunnel to be ready [08:33:32.402] [Forwarding server 59874] Got connection 0 [08:33:32.403] Tunneled 36023 to local port 59874 [08:33:32.403] Resolved "ssh-remote+simplex_mercury" to "127.0.0.1:59874" [08:33:32.407] > [08:33:32.414] ------ [08:33:32.483] [Forwarding server 59874] Got connection 1 [08:33:32.501] [Forwarding server 59874] Got connection 2 ```

Anything else?

No response

andymcblane commented 10 months ago

Any updates?

When I click "Refresh" - I do get prompted for the password again, but nothing happens after entering it.

chrmarti commented 10 months ago

@andymcblane Please open a new issue with the container log from when this happens included. (F1 > Dev Containers: Show Container Log)