Skip to content

Instantly share code, notes, and snippets.

View q815101630's full-sized avatar
🎯
Focusing

Lucheng_Hugh q815101630

🎯
Focusing
View GitHub Profile
@mattbell87
mattbell87 / remote-wsl.md
Last active November 6, 2024 01:04
VSCode Remote: Connect to WSL2 from another machine

VSCode Remote: Connect to WSL2 from another machine

Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.

Proxy jump method

  1. On the host set up OpenSSH for Windows
  2. Run wsl --update to make sure you are running the latest WSL
  3. Open WSL and install another SSH server inside WSL with sudo apt-get install openssh-server
  4. Now run sudo systemctl enable --now ssh to automatically start ssh when WSL starts.