-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fix use of "remote.containers.executeInWSL", "remote.SSH.configFile" and "remote.SSH.path" #6021
Comments
Have you checked the container log? ( |
Yes @chrmarti i checked the logs I don't know why but when i click reopen folder in container on launch it's trying to use the username from windows instead of the username set for ssh in vscode Remote ssh Windows User: ricar After creating a user in the ssh server with the same name of the user in windows it worked. So, i think the remote-containers should use the user@ip set for remote ssh if used via remote-ssh |
As a workaround, you could add your ssh server to your local
|
Where do you specify the username |
Not working for me either, in a slightly different flavor; I'm on windows 11, connected to a remote Ubuntu machine. I'm ssh'd into the machine, and can open folders that way, and it picks up the [8582 ms] Remote-Containers 0.209.5 in VS Code 1.63.0 (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e).
[8582 ms] Start: Run: wsl -l -v
[8611 ms] Start: Run: wsl -d Ubuntu -e ssh slipstream /bin/sh -c /bin/sh
[8613 ms] Start: Run in host: id -un
# process stuck here for some reason ... except the docker cli in Windows has a context pointing it to the remote machine (verified as both the cli and the docker extension properly reflect the remote machine). |
In my case i have a setting in settings.json i parsed this file for https://github.com/Tyriar/vscode-windows-terminal when added support for ssh and other things |
I think my problem is quite related to this issue, maybe it is even the same. Currently I used the following workaround for Remote-SSH , to use a WSL ssh. However, I also did not use the default distro. |
@alkatar21 There is a setting to let Remote-Containers run all commands in WSL, maybe that can help working around the issue: |
Unfortunately this does not help, it leads to the same behavior as in # 6053. |
@ricardosantos9521 This is an ssh feature, which is used there. You can use |
Remote containers should use that configuration stored for Remote SSH when in this context. When we have vscode connect to a ssh machine and i try to reopen a container in that machine it uses the Host value of the "remote.ssh.configFile" file instead of the using user@ip (Hostname@User). |
I meant by my comment that the part of the command you mentioned is correct. |
To summarize: When you are connected with Remote-SSH we should ignore |
Now available with VS Code Insiders and Remote-Containers 0.210.0. |
@vscode-triage-bot /verified |
Issue Type: Bug
Open a folder with remote ssh
Try to Reopen the folder in remote-containers
Not logs are shown
Extension version: 0.209.3
VS Code version: Code 1.63.0 (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e, 2021-12-07T06:26:56.179Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
Remote OS version: Linux arm64 5.10.0-9-arm64
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: