Skip to content

SSH Straight Into WSL2 Like a Real Linux Server

By default, WSL 2 uses NAT networking, which gives the Linux VM its own isolated IP that isn’t reachable from other machines on your network. You can fix this with mirrored mode, so it works just like a regular Linux server.

See Microsoft Docs - WSL Networking: Mirrored Mode for how to set it up.