

Windows: Create putty profile to connect to WSL2 Ubuntu: Add the SSH public key to ~/.ssh/authorized_keys on WSL2 Ubuntu.Save private key to ppk file this will used later when connecting to WSL2 Ubuntu using Putty or PLink.Generate new key pair, or convert existing key pair.Windows: Configure SSH public key authentication using PuttyGen: Windows: Create scheduled task that runs on user logon, running C:\Windows\System32\bash.exe with arguments /home//bin/startup.sh.WSL2 Ubuntu: mkdir -p ~/bin echo "sudo service ssh start" > ~/bin/startup.sh.Putty, Plink & PuttyGen installed on WindowsĮdit /etc/ssh/sshd_config: X11Forwarding yes.Using SSH X11 forwarding, with network connection initiated from Windows to WSL2 Ubuntu, which is particularly useful on company laptops that refuse all incoming network connections on Windows.

Connecting to VcXsrv directly from WSL2.Run Eclipse on WSL2 Ubuntu, displaying the Eclipse UI on VcXsrv running on Windows.This gist provides a summary on how to accomplish the following tasks:
