Run Ubuntu In Windows 10

Kevin FOO
3 min readAug 31, 2021

--

You can now run Ubuntu in Windows 10 and access your C drive contents through SSH in Ubuntu. To install follow the steps below.

First open control panel.

Programs

Under programs and features

Click turns Windows features on or off

Check the checkbox for Windows Subsystem for Linux (WSL), then click [OK].

Windows Subsystem for Linux

You will need to reboot your Windows.

Restart now

Now open Microsoft Store.

Search for “ubuntu” in Microsoft Store

Ubuntu and “Ubuntu 20.04 LTS” seems to be the same version.

Click [Get] to install

Once the installation in the Microsoft Store completed. Open the Ubuntu application.

Open the Ubuntu application and wait for it to complete

It will prompt you for username and password for the Ubuntu.

Enter your desired username & password

Setup completed.

Ubuntu is ready

SSH is not configured by default.

SSH not configured

If you try to start it, you will get an error.

sshd: no hostkeys available -- exiting.

To fix it, run

sudo ssh-keygen -A

By default password authentication is disabled. To enable it, set it to yes.

sudo vim /etc/ssh/sshd_config
Set PasswordAuthentication yes

Restart SSH

sudo service ssh restart

You can now login to the Ubuntu in Windows through SSH

< Back to all the stories I had written

--

--

Kevin FOO
Kevin FOO

Written by Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

No responses yet