Running  Linux on Windows with SSH connectivity

Running Linux on Windows with SSH connectivity

Ever needed to test your application locally on production matching software stack? Developing on Windows and deploying to Linux may require to run Linux as a guest on your Windows host OS. There are great tools allowing to do this quickly and hassle-free.

This post will showcase setting up Ubuntu 14.04 LTS as a guest OS on Windows 10 dev machine with Oracle VM Virtual Box.

Install Oracle VM VirtualBox and download Ubuntu ISO Image.

Create a partition for your Linux OS. I would suggest this partition having no less than 8GB. A detailed information about creating disk partitions on Windows 10 is here.

Create a New Virtual Machine in VirtualBox Manager. At some point, you will get to "File location and size" screen. Make sure this is pointing to your new partition, for example D:\Ubuntu\Linux.vdi. Once the VM is created, go to its Settings - Storage - Controller - IDE - Empty section and load up your Ubuntu ISO file there. In Settings - Network, use Bridged Adapter. In this mode VirtualBox connects to one of the network cards installed on the host. Virtual Machine will get an IP of your private network, so you will be able to interact with it without the need to forward ports.

Starting the newly created VM will guide you through the Linux installation process. Once this is done and Linux is up and running, open its Terminal window and install OpenSSH server with

sudo apt-get install openssh-server  

Having this done, find out the VM's IP address with ifconfig


You are ready to connect to it from your Windows Putty.

putty ssh


comments powered by Disqus