How to connect to ec2 windows instance

Raghu Nandan Lal Garikipati           - 190030483

•PuTTY is a common SSH client.

•which is free to download and use.

•However, PuTTY does not support the PEM (Privacy Enhanced Mail) key format.

•The key downloaded from AWS is PEM format.

• so it must be converted to PPK (PuTTY Private Key).

•In order to that we will be using PUTTYGen.

Step Wise Explanation ::

Step 1 :: Launching the EC2 Instance.

Step 2 :: Creating an Windows AMI EC-2 Instance in aws management Console.

Step 3 :: choose an instance type

Step 4 :: Configure instance

Step 5 :: adding storage

Step 6 :: adding of the tags

Step 7 :: configuration of the security group

Step 8 :: reviewing our instance launch

Step 9 :: creating a key pair[.pem] and downloading it

Step 10 :: launch status of our instance

Step 11 :: convert the . pem file to a .ppk file with PuTTYGEn loading .pem file.

Step 12 :: Saving the converted .ppk file.

Step 13 :: Ec2 instance with windows ami information.

Step 14 :: connecting the instance to rdp client by downloading .rdp file.

Step 15 :: Downloading the .rdp file.

Step 16 ::now lets find the password by browsing the .pem file and decrypt.

Step 17 ::copy the password which is decrypted.

Step 18 ::open .rdp file which we have downloaded earlier.

Step 19 ::Enter the password which we have decrypted and copied earlier.

Step 20 ::Hit connect anyway.

cloud,putty,aws,klcse,#kluniversity,klu,connect ec2 with putty,aws putty,how to connect ec2 instance using putty,putty aws ec2,linux instance,putty on windows,how to connect,amazon instance,putty ssh,how to use putty on windows,how to use putty,putty tutorial,windows,putty how to,putty private key,connect,amazon ec2 instance,ec2 instance,aws tutorial,ec2,amazon,amazon web services,tutorial,aws ec2,amazon ec2,how to connect aws linux instance using putty

Step 21 :: successfully accessed ec2 windows instance.

In this post, I will cover AWS EC2  Instance( Amazon Elastic Compute Cloud) , a computing service from AWS.

Amazon Elastic Compute Cloud (EC2) provides scalable computing capacity in the Amazon Web Services Cloud. Using EC2 Amazon eliminates your need to invest in hardware upfront, so you can develop and deploy applications faster.

Why do we use EC2?  | How does EC2 work? | Features of Amazon Elastic Compute CloudUse cases of EC2  | How to create ec2 instance in aws | Steps to Connect Amazon Windows EC2 Instance

What Is Amazon EC2? 

How to connect to ec2 windows instance

Amazon EC2 is a web service that provides secure and resizable compute capacity in the cloud to the users. The EC2 allows us to configure the capacity, and it also provides complete control of all your computing resources. An AWS user can increase or decrease instance capacity by using the EC2 web interface or an application programming interface (API). A developer can automatically code an application to scale up and down instances with AWS Auto Scaling. To manage multiple instances, a user can also define an autoscaling policy and group.

Learn With Us: Join our  AWS Solution Architect Training and understand AWS basics in an easy way.

Why We Use Amazon Elastic Compute Cloud?

Organizations have to invest a considerable amount in buying hardware components, and managing them is more hectic than buying, so the EC2 Amazon eliminates the investment in hardware upfront so that you can develop and deploy applications faster. Using EC2, you can launch as many or as few virtual servers as your need, manage storage, and configure networking and security. EC2 Amazon enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic.

It’s pretty simple to get up and running with EC2. You have a choice of pre-configured, templated Amazon Machine Images (AMI) to use for a quick launch. Or, if you prefer, you can create your own AMI that contains all of your libraries, data, applications and relevant configuration settings. EC2 Amazon allows you to customize settings by configuring security and network access. Because you can instantly scale your VM environment to address usage spikes or drops, you have the power to control the number of resources being used at any point in time. The service’s elasticity supports the minimized costs of a “pay-for-what-you-use” billing model.

How to connect to ec2 windows instance

Features Of Amazon Elastic Compute Cloud

  • Reliable: Amazon EC2 offers a highly reliable environment where the replacement of instances is rapidly possible.
  • Secure: Amazon Virtual Private Cloud where EC2 works and provides a secured and robust network to resources.
  • Flexible tools: EC2 Amazon provides the tools for developers and system administrators to build failure applications and isolate themselves from common failure situations.
  • Inexpensive: EC2 Amazon wants us to pay only for the resources that we use on an hourly basis. It includes multiple purchase plans such as On-Demand Instances, Reserved Instances, Spot Instances, etc. which we can choose as per our need.

Use Cases Of AWS EC2 Instances

  • Hosting environments: Primarily EC2 uses for hosting a website and application on the cloud. The best part of EC2 Amazon is that it provides a Dynamic and Scalable environment where its compute capacity can grow as per the need of the application. Companies like Netflix and Reddit are the best proof of EC2 hosting success.
  • Backup and disaster recovery: Companies hold EC2 as a medium for performing disaster recovery for both active and passive environments.EC2 turns quickly in case of an emergency, which means businesses have access to the fastest failover with minimal downtime of their application.
  • High-performance computing: The EC2 Amazon provides virtualized servers with high-performance networking and high compute power. Organizations like NASA and Pfizer employ high-performance computing using the EC2 Amazon Instance.
  • Development and test environment: EC2 Amazon is scalable, so now the organization can create and deploy large scale testing and development environment with unprecedented ease. EC2 Amazoneliminates the investments in hardware and also provides a scalable solution
  • Banking and financial sector: These sectors demand maximum scalability and security, and EC2 provides both. Amazon cloud builds trust by providing highly secure services. Retail and commercial banks, insurance providers, and significant payment platforms rely on AWS.

8 Steps To Create Amazon Windows EC2 Instance

Note: If you don’t have an AWS account, check our blog on how to create AWS Free Tier Account

Step 1: Log in to your AWS account and go to the EC2 dashboard to launch a new instance.

How to connect to ec2 windows instance

Step 2: In the Name and Tags step you can add tags to an instance, here tags help you to enable categorize AWS resources in different ways, for example, by owner, environment, or purpose. For example, you could define a set of tags for your account’s EC2 instances that help you track each instance’s owner and stack level.

How to connect to ec2 windows instance

Step 3: Select Windows under QuickStart and Select Microsoft Windows Server 2019 Base AMI. You can also select other AMI as per your need but here we launching a Windows Server, so we have to select the Windows Server 2019 Base AMI.

How to connect to ec2 windows instance
Step 3: Select the t2.micro instance type, if you want you may select another instance type but they are chargeable so we choose the t2.micro instance type which is eligible for the free tier and limited resources.

How to connect to ec2 windows instance

Step 4: Select an existing key pair or create a new one, we will Create a new one, enter the name of the Key-pair as Windows-Key and Create the Key Pair.

How to connect to ec2 windows instance

How to connect to ec2 windows instance

Also Read:  Our Previous Blog On SDLC Automation

Step 5: Now, keep everything default and click on Launch Instance.

How to connect to ec2 windows instance

Step 6: Now Click on View all Instances.

How to connect to ec2 windows instance

Do Check: Our Blog Post on AWS SNS for an overview.

Step 7: Here, you shall see your instance is launching and the Status check is Initializing, wait for some time.

How to connect to ec2 windows instance

Step 8: Refresh and you shall see your instance is Up and Running, and the Status check has changed to 2/2 checks.

How to connect to ec2 windows instance

Also, Visit Our Blog post on  AWS Secrets Manager for an overview.

10 Steps To Connect Amazon Windows EC2 Instance

Step 1: Firstly we have to select the Windows instance From the Running Instance of the EC2 dashboard and click on Connect.

How to connect to ec2 windows instance

Step 2: Here we have to select the RDP (Remote desktop protocol) Client and then Download the RDP File and save it somewhere safe then, and we need a password to access the RDP file, so click on Get Password.

How to connect to ec2 windows instance

Read More: Amazon AWS Elastic Beanstalk.

Step 3: At this step of launching, we have to upload the Key-pair (the key which we have created in the earlier step). Click on Browse and then select the key and click on Decrypt Password. This provides us with a usable password.

How to connect to ec2 windows instance

Also, Check Our blog post on AWS Inspector. Click here

Step 4: After submitting the Key-pair here the Password is Generated, copy and save it somewhere safe.

How to connect to ec2 windows instance

Step 5: Now open the Remote Desktop File from downloads for launching the Windows instance. If your local computer is a Mac, you will need to download “Microsoft Remote Desktop” from the App Store to be able to open your RDP file.

How to connect to ec2 windows instance

Read:  AWS Certified DevOps Engineer Professional

Step 6: After opening the RDP file click on Connect to launch the Window instance.
Note: Windows has the Remote Desktop Connection Application pre-installed; so for other OS like mac you need to download the Microsoft Remote Desktop app from the Mac App Store.

How to connect to ec2 windows instance
Check Out: AWS Web App Deployment

Step 7: Here we have to provide the credentials for accessing the Instance so we have to Enter the Password That we copied in step 4 and click on Ok.

How to connect to ec2 windows instance

Step 9: Click on Yes.

How to connect to ec2 windows instance

Step 10: So we have successfully connected to an Amazon Windows Instance, here we perform all our operations and task that we are performing on the normal windows operating system.

How to connect to ec2 windows instance

That’s all our Amazon Windows EC2 instance is up and running. To know more about AWS please check our references section.

Check out what is AWS DevOps here.

  • AWS Free Tier Limits
  • AWS Free Tier Account Details
  • Overview of Amazon Web Services & Concepts
  • How to create a free tier account in AWS
  • AWS Certified Solutions Architect Associate SAA-CO2
  • Storage – Amazon Elastic Compute Cloud – AWS Documentation
  • Amazon Elastic File System User guide
  • AWS Management Console Walkthrough
  • AWS re:Invent 2020: Get A FREE AWS Practice Exam & FREE Training
  • AWS Certified Solution Architect Associate SAA-C02 Step By Step Activity Guides (Hands-On Labs)
  • AWS EFS, EBS and S3: Best AWS Storage Option
  • AWS Free Tier Account Services
  • AWS Trusted Advisor Best Practices
  • AWS Certificate Manager (ACM): Overview, Features and How it Works?
  • AWS Route 53 Introduction

Next Task For You

Begin your journey towards becoming a Certified AWS Solution Architect Associate by joining our FREE Informative Class on Amazon AWS Solution Architect Certification For Beginners & Q/A by clicking on the below image.

How to SSH into EC2 instance Windows?

How to connect to an EC2 instance using SSH using Linux.
Open your terminal and change directory with command cd, where you downloaded your pem file. ... .
Type the SSH command with this structure: ssh -i file.pem username@ip-address. ... .
After pressing enter, a question will prompt to add the host to your known_hosts file..

How to connect to Amazon EC2 Windows instance using PuTTY?

Connect to EC2.
Make sure: ... .
In the Category pane on the left of the PuTTY Configuration window, under Connection, click on the + next to SSH to expand the choices (4), then click on Auth (5)..
Under Authentication parameters, click Browse and navigate to the directory where your PuTTY Private Key (. ... .
Click Open..

Can you SSH to Windows instance?

The latest builds of Windows 10 and Windows 11 include a built-in server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, similar to Linux distros.