Connect to your EC2 Instance

Connect to your EC2 Instance

How to connect to an EC2 instance step by step

Hello everyone

Welcome to CloudAffaire and this is Debjeet.

In the previous blog post, we have created our 1st EC2 instance in the AWS cloud. If you don’t have your instance created yet, kindly follow below link to create your EC2 instance

https://cloudaffaire.com/create-ec2-instance/

In this blog post, we are going to learn about how to connect to an EC2 instance step by step

Below are the prerequisites for this blog post

One up and running EC2 Linux instance

Key Pair mapped with the instance

Putty & PuttyGen to connect your instance.

Please download and install from  https://www.putty.org/

How to connect to an EC2 instance step by step

Step 1: Convert your Key Pair to use with Putty

1. Open PuttyGen and click ‘Load’

how to connect to an EC2 instance

2. Browse Key Pair with the .pem extension. Once opened click ‘Save privet key’

how to connect to an EC2 instance

3. Give a name with .ppk extension and click ‘Save’

how to connect to an EC2 instance

Step 2: Login to your AWS console and copy Public DNS of your instance under EC2 service

how to connect to an EC2 instance

Step 3: Open Putty and under Host Name paste public DNS with ec2-user@ prefix

how to connect to an EC2 instance

Step 4: Expand ‘SSH’ located in the left side panel of putty and select ‘Auth’ and click ‘Browse’. Open your Key Pair with .ppk extension and click ‘Open’

how to connect to an EC2 instance

One warning alert will be displayed, click Yes

how to connect to an EC2 instance

If everything is ok you will be connected to your EC2 instance

how to connect to an EC2 instance

Hope you have enjoyed this article. Before further going with step by step demo on EC2 service we need to clear our understanding of AWS EC2 services. Hence In the next blog post, we are going to discuss some of the key features of EC2 service.

 

 

Leave a Reply

Close Menu