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.67k stars 289 forks source link

The vscode still ask me for ssh password after I logged in #9486

Open wli565 opened 9 months ago

wli565 commented 9 months ago

[19:11:50.011] askpass server listening on /var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-b303f12a7778cf4d83fafd8f38a144f83bb466fc.sock [19:11:50.011] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-cfe18964d2fe7b447fa19271e58610c765985aaf.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","57709","-o","ConnectTimeout=15","best-linux.cs.wisc.edu"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/janeli/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-5ce66f06-8b3775030ed1a69b13e4f4c628c612102e30a681-0.107.1-tr/data.json"} [19:11:50.011] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.w8hh80kvDY/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/janeli/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/janeli/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-b303f12a7778cf4d83fafd8f38a144f83bb466fc.sock"} [19:11:50.012] Spawned 76392 [19:11:50.068] > local-server-1> Running ssh connection command: "-v -T -D 57709 -o ConnectTimeout=15 best-linux.cs.wisc.edu" [19:11:50.069] > local-server-1> Spawned ssh, pid=76404 [19:11:50.072] stderr> OpenSSH_9.4p1, LibreSSL 3.3.6 [19:11:50.134] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:kETPW2BK+C68kM6CbwBM58DB0cyTno/yrXRIu6ELomI [19:11:50.408] Got askpass request: {"request":"(janel@best-linux.cs.wisc.edu) Password:"} [19:11:50.408] Showing password prompt [19:11:50.409] Listening for interwindow password on /var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-e1781bd332d7d8ef284dd6d8ea5a27913fd0c9d7.sock [19:11:50.409] Writing password prompt to globalState [19:11:53.509] Got password response [19:11:53.510] Interactor gave response: ***** [19:11:53.511] Cleaning up other-window auth server [19:11:54.159] Got askpass request: {"request":"(janel@best-linux.cs.wisc.edu) Duo two-factor login for wli565 Enter a passcode or select one of the following options: 1. Duo Push to XXX-XXX-9836 Passcode or option (1-1):"} [19:11:54.160] Listening for interwindow password on /var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-286daf239917eec31f630245af38ab2ccf9ed1e3.sock [19:11:54.160] Writing password prompt to globalState [19:11:59.480] Interactor gave response: ** [19:11:59.481] Cleaning up other-window auth server [19:11:59.863] stderr> Success. Logging you in... [19:11:59.867] stderr> Authenticated to best-linux.cs.wisc.edu ([128.105.37.196]:22) using "keyboard-interactive". [19:12:00.196] > Success. Logging you in...

Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-92-generic x86_64)

1 device has a firmware upgrade available. Run fwupdmgr get-upgrades for more information.

Expanded Security Maintenance for Applications is not enabled.

3 updates can be applied immediately. To see these additional updates run: apt list --upgradable

39 additional security updates can be applied with ESM Apps. Learn more about enabling ESM Apps service at https://ubuntu.com/esm

=============================================================================== This instructional workstation is installed with Ubuntu 22.04.3 LTS

If you encounter any issues, please send a problem report to lab@cs.wisc.edu

REMINDER: NO FOOD or DRINK IN THE CS INSTRUCTIONAL COMPUTER LABS NEVER POWER DOWN WORKSTATIONS IN THE COMPUTER LABS

The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

1 device has a firmware upgrade available. Run fwupdmgr get-upgrades for more information.

The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. [19:12:00.212] > ready: 57d15c37779b [19:12:00.218] > Linux 5.15.0-92-generic #102-Ubuntu SMP Wed Jan 10 09:33:48 UTC 2024 [19:12:00.218] Platform: linux [19:12:00.224] > /bin/bash [19:12:00.225] Shell: bash [19:12:00.225] Creating bash subshell inside "bash" [19:12:00.232] > bash version: 5.1.16(1)-release [19:12:00.241] > 57d15c37779b: running [19:12:00.268] > Acquiring lock on /home/janel/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/vscode-remote-lock.janel.8b3775030ed1a69b13e4f4c628c612102e30a681 Installation already in progress... If you continue to see this message, you can try toggling the remote.SSH.useFlock setting 57d15c37779b: start exitCode==24== listeningOn==== osReleaseId==ubuntu== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/15026== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== 57d15c37779b: end [19:12:00.268] Received install output: exitCode==24== listeningOn==== osReleaseId==ubuntu== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/15026== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime====

[19:12:00.269] Server installation process already in progress - waiting and retrying [19:12:00.269] Terminating local server [19:12:00.273] Local server exit: 15 [19:12:01.279] askpass server listening on /var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-581f12f17be39e9c8b43b1c777f9c4c868171afb.sock [19:12:01.280] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-fcb0a737bd1e882ae05cafd4ab925df4ae260dd5.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","57709","-o","ConnectTimeout=15","best-linux.cs.wisc.edu"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/janeli/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-5ce66f06-8b3775030ed1a69b13e4f4c628c612102e30a681-0.107.1-tr/data.json"} [19:12:01.280] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.w8hh80kvDY/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/janeli/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/janeli/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-581f12f17be39e9c8b43b1c777f9c4c868171afb.sock"} [19:12:01.282] Spawned 76423 [19:12:01.357] > local-server-2> Running ssh connection command: "-v -T -D 57709 -o ConnectTimeout=15 best-linux.cs.wisc.edu" [19:12:01.358] > local-server-2> Spawned ssh, pid=76435 [19:12:01.361] stderr> OpenSSH_9.4p1, LibreSSL 3.3.6 [19:12:01.419] stderr> debug1: Server host key: ecdsa-sha2-nistp256 SHA256:kETPW2BK+C68kM6CbwBM58DB0cyTno/yrXRIu6ELomI [19:12:01.592] Got askpass request: {"request":"(janel@best-linux.cs.wisc.edu) Password:"} [19:12:01.592] Showing password prompt [19:12:01.592] Listening for interwindow password on /var/folders/gj/1nzwkx3x3rg1zwxj2mx5xkrm0000gn/T/vscode-ssh-askpass-647c1a380f53b579246dc8898ce27f201b191f60.sock [19:12:01.592] Writing password prompt to globalState

end of log

Steps to Reproduce:

  1. I tried to enter passwords several times (at least 10 times)

Does this issue occur when you try this locally?: Yes/No Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

Hi-ImKyle commented 8 months ago

I have a similar problem. But it's not as drastic as "at least 10 times".

Mine asks for my ssh key password. I input it, all is good everything starts to load fine. Then it asks for the same thing again, of which if I cancel that it asks again and if I cancel the second one it stops asking. But nothing seems to be missing/not working because of it.