In this tutorial, you will learn how to enable SSH on Windows Subsystem for Linux (WSL) and have the SSH server start automatically at boot.


  • Windows 10 version 1703 (Creators Update) or higher

Level of Difficulty: Beginner

Estimate Time to Complete Tutorial: 5 mins

Enable Windows Subystem for Linux

  1. Open PowerShell as Administrator and run:
    1. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  2. Restart your computer when prompted.

Get and Install Ubuntu

  1. Open the Microsoft Store
  2. Do a search for Ubuntu
  3. Make sure to select the version:
    1. Ubuntu 18.04 LTS
  4. Click on: Get to install

Configure and Update Ubuntu

  1. Set your linux username
  2. Update Ubuntu
    1. sudo apt update
    2. sudo apt full-upgrade
  3. *Optional – Enable SSH for local network use – SSH On Windows Subsystem for Linux


You should now have Windows Subsytem for Linux enable with Ubuntu installed as your linux distro