How to create AWS EC2 Ubuntu VM instance for free and access from Windows Machine using Putty

Before creating AWS Ubuntu Machine, Let’s understand Virtual Machine and its benefits-

What is a virtual machine?

Virtual Machine Types

  • Process Virtual Machine- Also known as an application virtual machine, it supports a single process or application to run on a host OS. It is used to mask the underlying hardware or OS and execute the application just like other native applications. For example, Java applications are implemented using Java virtual machine (JVM).
  • System Virtual Machine- Also known as hardware virtual machine, virtualizes a complete operating system and can be used as a substitute for a physical machine. It shares the physical resources of the host machine but has its own OS. The virtualization process runs on a hypervisor or a virtual machine monitor running on bare hardware (native virtual machine), or on top of an OS (hosted virtual machine). For example, VirtualBox and VMware ESXi.

Advantages of virtual machines(VM)

  • Access VM from any Machine - any time.
  • Because the software is separate from the physical host computer, users can run multiple OS instances on a single piece of hardware, saving a company time, management costs and the physical space.
  • Developers use VMs in order to test apps in a safe, sandboxed environment.
  • Easy maintenance, application provisioning, availability and convenient recovery.

Let’s Create a Virtual Machine on AWS Platform

We have 7 simple steps, We can leave many of them as default for basic Machine creation.

So, We have created an Ubuntu VM Machine. Now we will connect to this Instance.

  1. Open an SSH client.
  2. Locate your private key file. The key used to launch this instance is test-flsk-app.pem
  3. Run this command, if necessary, to ensure your key is not publicly viewable.
  4. chmod 400 test-flsk-app.pem
  5. Connect to your instance using its Public DNS:

So we generated .ppk using PuTTYgen, Now let’s connect to VM instance using PuTTY-

--

--

--

A technology enthusiast who loves to share learning on different technologies including Python programming, JavaScript and Cloud Tech.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Lab 7: Output: DC Motors

Pipedrive vs HubSpot CRM: Delve into the Differences — Data2CRM.Migration

On MetaMask Main Navigation

It has long been a teaching that the patients with the severe lung disease called ARDS

Push Notification Basics (2 of 2)

#freestockphoto (Wednesday 18th 08AM)

How to Remove an Object from an Online Word Document in Python

Install Fortify Software Security Center (SCC) on Rocky Linux

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Diwaker Mishra

Diwaker Mishra

A technology enthusiast who loves to share learning on different technologies including Python programming, JavaScript and Cloud Tech.

More from Medium

Modernizing SAP: From RICEFW to BEANS — Part 4

Google Web UI

Deploy multi-container service on AWS LightSail

Media Streaming with AWS

Identity Federation for GitHub Actions on AWS