joelspadin / vscode-remote-x11

Visual Studio Code extension that sets the DISPLAY environment variable in remote workspaces
39 stars 9 forks source link

Feature request: use VS Code's local SSH server #44

Open bersbersbers opened 3 years ago

bersbersbers commented 3 years ago

Can you piggy-back on VS Code's local SSH server to prevent additional authentication? This would be very helpful for 2FA setups without a grace period. See https://github.com/microsoft/vscode-remote-release/issues/1521#issue-500567109

joelspadin commented 3 years ago

Is there an API for that? I don't see any information about how it works or how to use it. It looks to me like it's not intended to be used from other extensions.

bersbersbers commented 3 years ago

I must admit I have found hardly any documentation* (and the code is closed-soure as well), but I think releasing it more widely (only) hangs on a few bugs still, compare https://github.com/microsoft/vscode-remote-release/issues/4487#issue-810749892:

some users won't be able to use this mode with Windows for some time because of various issues.

*I have found mentions at https://code.visualstudio.com/docs/remote/troubleshooting#_troubleshooting-hanging-or-failing-connections and https://code.visualstudio.com/docs/remote/linux

joelspadin commented 3 years ago

It looks like the next nightly build of Microsoft's remote extension will have X11 forwarding built in: https://github.com/microsoft/vscode-remote-release/issues/589

bersbersbers commented 3 years ago

Yes, and it seems to be working now that it has been released: https://github.com/microsoft/vscode-docs/blob/main/remote-release-notes/v1_54.md#x11-forwarding