Connecting to Linux|Ubuntu running in Virtual Machine to Terminal in Windows |WSL
2 min readJul 3, 2019
After have installed Ubuntu, login your virtual Machine ubuntu with username and password inserted during the installation:
Install openssh-server
sudo apt-get updatesudo apt-get install openssh-server
Now Stop the Virtual Machine and go to the Network Setting of your Virtual Machine
Click on the Advanced Option and add the following rule:
Start your Virtual Machine:
When your VM is started, open your terminal and try to connect:
ssh yourusername@127.0.0.1 -p 2222
and you will be inside your Virtual Machine