microsoft / microsoft/vscode-remote-release
Successful Remote Server Connection but Repeated Password Prompt when Attempting to Open Folder on Remote Server
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Is there an existing issue for this bug?
- I have searched the existing open issues and found none that apply.
- If I find any issue of interest that is related or closed, I will included a link to it in this issue.
Required Troubleshooting Steps
- I have read and performed the troubleshooting steps
- I have tried both values of the
remote.SSH.useLocalServersetting - My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
- I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar
[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I did not try step 2 of the troubleshooting steps
Remote-SSH Log
Remote-SSH Log
> * Visual Studio Code Server
> *
> * By using the software, you agree to
> * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
> * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
> *
>
[08:56:41.849] > Checking server status on port 36608 with wget
> wget: unrecognized option '--no-config' Usage: wget [OPTION]... [URL]... Try `wget --help' for more options.
> c6d905ee6feb: start
> exitCode==28==
> listeningOn==36608==
> osReleaseId==centos==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/3619889==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
[08:56:41.851] > extInstallTime====
> serverStartTime====
> c6d905ee6feb: end
[08:56:41.852] Received install output:
exitCode==28==
listeningOn==36608==
osReleaseId==centos==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/3619889==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====extInstallTime====
serverStartTime====
[08:56:41.852] Server status check failed - waiting and retrying
[08:56:41.852] Terminating local server
[08:56:41.866] Local server exit: null
[08:56:42.874] Using SSH config file "C:\Users\dj\.ssh\config"
[08:56:42.876] askpass server listening on \\.\pipe\vscode-ssh-askpass-ff26a16de5e27e335cb5afe4dfe9b1271d0a2307-sock
[08:56:42.877] Spawning local server with {"serverId":2,"ipcHandlePath":"\\\\.\\pipe\\vscode-ssh-askpass-031cd4e9fcefdee0f802fae50aecad1648e090bd-sock","sshCommand":"C:\\Program Files\\Git\\usr\\bin\\ssh.exe","sshArgs":["-v","-T","-D","58090","-F","C:\\Users\\dj\\.ssh\\config","unix5.csc.calpoly.edu","bash"],"serverDataFolderName":".vscode-server","dataFilePath":"c:\\Users\\dj\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote-ssh\\vscode-ssh-host-ca50ff09-f1a4fb101478ce6ec82fe9627c43efbf9e98c813-0.116.2024111219-tr\\data.json"}
[08:56:42.877] Local server env: {"DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"c:\\Users\\dj\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.116.2024111219\\out\\local-server\\askpass.bat","VSCODE_SSH_ASKPASS_NODE":"C:\\Users\\dj\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"c:\\Users\\dj\\.vscode\\extensions\\ms-vscode-remote.remote-ssh-0.116.2024111219\\out\\askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"\\\\.\\pipe\\vscode-ssh-askpass-ff26a16de5e27e335cb5afe4dfe9b1271d0a2307-sock"}
[08:56:42.906] Spawned 21852
[08:56:42.907] Using connect timeout of 17 seconds
[08:56:43.072] > local-server-2> Running ssh connection command: C:\Program Files\Git\usr\bin\ssh.exe -v -T -D 58090 -F C:\Users\dj\.ssh\config unix5.csc.calpoly.edu bash
[08:56:43.086] > local-server-2> Spawned ssh, pid=40068
[08:56:43.310] stderr> debug1: Server host key: ssh-ed25519 SHA256:qha5yV85XN5IvE4G0dEr3G0jz51uvKhq8gEG+if27K8
[08:56:43.592] Got askpass request: {"request":" dtaylo37@unix5.csc.calpoly.edu's password: "}
[08:56:43.592] Showing password prompt
[08:56:43.593] Listening for interwindow password on \\.\pipe\vscode-ssh-askpass-346e712664aef7f061aaafe0907939d2e5b259ef-sock
[08:56:43.593] Writing password prompt to globalState
[08:56:55.364] Got password response
[08:56:55.365] Interactor gave response: ***************
[08:56:55.365] Cleaning up other-window auth server
[08:56:55.366] Using connect timeout of 17 seconds
[08:56:56.082] stderr> Authenticated to unix5.csc.calpoly.edu ([129.65.128.85]:22) using "password".
[08:56:56.154] > ready: c6d905ee6feb
[08:56:56.175] > Linux 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021
[08:56:56.176] Platform: linux
[08:56:56.190] > /bin/bash
[08:56:56.191] Parent Shell: bash
[08:56:56.191] Parent Shell pid: 21852
[08:56:56.206] > 123393
[08:56:56.206] Waiting for pid of spawned 'bash' subshell: '123393'...
[08:56:56.233] > c6d905ee6feb: running
[08:56:56.252] > Acquiring lock on /run/user/3619889/vscode-remote-lock.dtaylo37.f1a4fb101478ce6ec82fe9627c43efbf9e98c813
[08:56:56.255] > Found existing installation at //home/dtaylo37/.vscode-server/bin/f1a4fb101478ce6ec82fe9627c43efbf9e98c813...
> Checking //home/dtaylo37/.vscode-server/.f1a4fb101478ce6ec82fe9627c43efbf9e98c813.log and //home/dtaylo37/.vscode-server/.f1a4fb101478ce6ec82fe9627c43efbf9e98c813.pid for a running server
[08:56:56.257] > Looking for server with pid: 123005
[08:56:56.272] > Found running server...
[08:56:56.274] >
> *
Expected Behavior
I'm expecting that I can log in to the remote server and see the directories and flies associated with my account
Actual Behavior
I keep getting a repeated password prompt where I can't open the actual folder on the remote server
Steps To Reproduce
- Connect to Remote Host
- Successfully log on with correct password
- Click 'Open Folder'
- Go to the desired path on the Remote Host
- Click OK
- Enter password, same password as before, for opening the folder
- Asked for password over and over again
Anything else?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Remote-SSH: Show Log output and the troubleshooting wiki's generated SSH command, then compare the initial connection with the Open Folder step. The log shows successful password authentication and an existing server, while the reported result is repeated prompting; done means the remote folder opens without another repeated password prompt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, vscode
- Domain
- authentication, devtools, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100