-
Notifications
You must be signed in to change notification settings - Fork 385
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
VSCode ssh connection to local wsl2 devcontainer timed out #772
Comments
I should add that opening the same devcontainer with vscode (browser) instead of vscode does work. |
Hi @ckihm |
Hi @89luca89 |
I think I have the same issue, though the SSH provider is on another machine.
|
Same here, ssh to another machine. `[21:13:52.888] Log Level: 2 [21:13:57.167] Running script with connection command: "C:\windows\System32\OpenSSH\ssh.exe" -T -D 61416 "rust-test.devpod" bash [21:14:20.289] > 21:14:20�[38;5;6minfoWaiting for devpod agent to come up...
|
Actually, on windows, ssh to wsl container directly trigger some error, which consequentially cause vscode timeout. I added --debug to ssh config so I can see the log. here it is
Update. Actually, I believe |
Having the very same issue where the workspace opens up perfectly with vscode browser but when you use the Remote SSH option it just goes into waiting and eventually timeout
If anyone else has found a fix for this or the cause for it, please do share. |
Still seeing issue in 0.5.2 |
You are opening VScode in windows, so its needs to access the devcontainer inside WSL2: |
@JeanPoll This is a good finding. I now guess it is somehow an string escape issue. For example, on both mac and linux ssh config, a subcommand from ssh can be invoked as |
Anyway I still encounter issues with WSL2 and VScode in windows: |
What happened?
Tried to start DevContainer from this repo: https://github.com/microsoft/vscode-remote-try-python.git
with SSH Provider. Devcontainer started successfully in my local WSL2, Ubuntu 22.04, but ssh connection from my started VSCode (Windows) timed out.
DevPod log with --debug:
VSCode log:
What did you expect to happen instead?
SSH Connection established successfully
How can we reproduce the bug? (as minimally and precisely as possible)
Create ssh keys on windows and add the pub to authorized_keys on the wsl ubuntu distribution
Configure SSH Agent in DevPod to use localhost and port 22. Everything else default:
Create workspace with git url: https://github.com/microsoft/vscode-remote-try-python.git and VSCode
Local Environment:
DevPod Provider:
Anything else we need to know?
DevPod adds a host to the ssh config:
PS C:\Users\chris.ssh> cat .\config
When executing ssh with this host, this happens:
When executing the proxy command in ps (using devpod.cmd instead of the path to exe), this happens:
These manual steps are working:
The text was updated successfully, but these errors were encountered: