click the "+" at the top of the list, enter select the SSH config file to save the configuration in (probably the one in your user folder, not the system-wide one this may be a new file),.click on the new "Remote Explorer" button on the left-hand side of the VS Code window,.Once you have the Remote Development extension installed and enabled: If for whatever reason you can't forward port 22 (or you otherwise need an SSH server running on Windows itself), you could configure the port forwarding from, say, port 2022 on Windows to port 22 on WSL, so you'd be connecting to localhost:2022 instead of just localhost (which is implicitly port 22). Here's an article on WSL port forwarding: I don't have any experience with VS Code on WSL, but in order to use your local WSL as a remote SSH host you'd need to set up port forwarding so that port 22 (the usual SSH port) on your Windows computer connects instead to the SSH server on WSL. A remote VS Code host is this setup: (Usually the remote host is another computer.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |