Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.
- On the host set up OpenSSH for Windows
- Run wsl --updateto make sure you are running the latest WSL
- Open WSL and install another SSH server inside WSL with sudo apt-get install openssh-server
- Now run sudo systemctl enable --now sshto automatically start ssh when WSL starts.