-
Notifications
You must be signed in to change notification settings - Fork 296
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
Remote-SSH: Password prompted again when opening a folder #6227
Comments
@aeschli in your settings do you have |
Would you be able to share your logs for the reloaded window with the folder? |
|
with today's build i see the same (this is the only bug i hit in the flow now, aside from the pwsh issue) |
same issue on my win10 laptop. However vscode on my mac only need password and otp once. Both devices share the ssh setting. |
I meet same problem in my win11, but not in linux deepin. |
I have the same problem on MacOs |
This looks like a real bug in |
Actually, it seems that I do the wrong thing for communicating with the local server. Discussion: https://vscodeteam.slack.com/archives/C03ERNTC03X/p1670890778629489 We spawn the local server here and communicate over stdio: https://github.com/microsoft/vscode-remote-ssh/blob/0257ea91b18c4c7c58bb1bcb1c40d4d58c76fe89/open-ssh-remote/src/local-server.ts#L305 But the docs clearly say that when spawning a detached process that will outlive its parent, you have to use This used to work as long as you didn't write to stdio when the parent was dead. This behavior probably changed with an electron update at some point. So now, we have to communicate with the local server over an ipc channel instead of stdio. Fortunately, we already have a tcp server set up for communication with the local server, so this should be relatively easy. An alternative is Deepak's suggestion in Slack. |
I want to add to this a similar bug (maybe the same reason?): after you open a new folder (and entering the password again), if you have a .code-workspace file you will be prompted to enter to your workspace, and when you do- you'll have to enter the password yet again! |
@u84six can you open another issue if you are noticing a recent regression? Thanks |
@YoniChechik, how many times are you being prompted? if it is more than 2 or 3 please open another issue and we can continue the conversation there. Thanks! |
The reason I didn't open a new ticket is because this one already exists... and it's still open |
@u84six this is an issue that has been known for over a year, has your regression come up more recently or does this align with the timeline you noticed this problem at? Not sure if it has worked for you in the past or if you are just recently using this extension. |
@eleanorjboyd my setup is as follows: I use docker on a remote linux machine (connecting from a personal windows pc).
|
Thank you for saving me the time! :) |
Well the last time I used these extensions was quite a while ago on a different machine, when the extensions were in the "experimental" stage. I just recently installed the extensions again (after years) and I'm seeing this issue. Whenever I open a new folder after logging in, I get prompted for my password. Can you reproduce this on your end? If not, I'd be really surprised because it seems consistent. The remote machine I ssh to is CentOS v7 |
Hi! Yes that behavior is the current bug we are attempting to fix and will hopefully be resolving soon. Thanks |
Hi @eleanorjboyd. |
I can confirm that this bug is still a thing to this day. |
I have this problem but wonder if its because when I setup the SSH key I made it a password protected identity file. Would that make it ask for SSH Password every single time? |
This isn't necessarily Windows specific. On MacOS and connecting to a Linux machine I have been seeing this for over a year. Edit: Adding IdentityFile to ssh config actually did not fix Edit again: ssh-agent did work, thanks for that |
As this issue has been post for more than two years and not resolved yet, I'd like to share a workaround I found works in MacOs and Window, otherwise we have to roll back to later 2021 version vscode to enjoy one password experience. The workaround is to turn on both "remote.SSH.useExecServer" and "remote.SSH.useLocalServer". In case the vscode GUI setting not work properly, add two line to your user setting.json file. "remote.SSH.useExecServer": true,
"remote.SSH.useLocalServer": true, If your are using a windows pc, you have to do one more thing, that is use ssh shipped with git. The builtin Openssh in window does not work perfect along vscode. And lastly, there is a known limitation of useExecServer when you want to use proxyjump with portforward. I recommend you writ the port forward in the config to workaround this. |
It looks like this no longer reproes with |
Testing #6220
Windows
Remote-WSL v0.71.2021121615 (pre-release)
Version: 1.64.0-insider (user setup)
Commit: f93c69659de1a1466bd15e0f1c9f790e73be9208
Date: 2022-01-25T08:42:41.055Z
OS: Windows_NT x64 10.0.19044
In #6220, step 3, it says that when I open a new folder, I shouldn't get prompted for a password again.
File > Open Folder
, pick a folder, window is reopened, trust dialog shows, password input dialog showsI know I could set up a SSH agent but I haven't done so.
The text was updated successfully, but these errors were encountered: