# How to connect ec2 instance using putty

- Link: https://technotaught.com/connect-ec2-instance-using-putty/
- Published: 2020-03-31T21:38:04+05:30
- Author: Ashishkumar Vishwakarma

In this tutorial, We will learn how to connect ec2 instance using putty from scratch.

PuTTY is a free and open-source terminal emulator, serial console and network file
transfer application. It supports several network protocols, including SCP, SSH,
Telnet, login, and raw socket connection. It can also connect to a serial port.

Learn How to: – [Setting up Aws sign up || registration](https://technotaught.com/setting-up-aws-sign-up-registration/)

Learn How to: – [AWS ubuntu setup || launch an AWS EC2 Server ](https://technotaught.com/aws-ubuntu-setup-launch-an-aws-ec2-server/)

## How to connect ec2 instance using putty

### Step 1: – Download PuTTy

If you don’t have the PuTTY software installed on your system, you will need to 
download it from[ www.putty.org](https://www.putty.org). Be sure to select here 
in the above picture.

![Connect ec2 instance using putty](https://technotaught.com/wp-content/uploads/
2020/03/putty.jpg)

Download:- Based on your window system download 32bit or 64bit.

![Connect ec2 instance using putty](https://technotaught.com/wp-content/uploads/
2020/03/putty-1.jpg)

### Step 2: – Download Your EC2 Key Pair File

This Key pair file that you downloaded in [AWS ubuntu setup || launch an AWS EC2 Server](https://technotaught.com/aws-ubuntu-setup-launch-an-aws-ec2-server/)
i.e .pem file. Now we require here.

A key pair consists of a public key that AWS stores and a private key file that 
you store (downloaded as PEM file). PEM stands for Privacy Enhanced Mail and is 
a widely used X.509 encoding format used for security certificates. Together, the
two keys enable you to securely connect to your EC2 instance using SSH.

![files](https://technotaught.com/wp-content/uploads/2020/03/aws-7.jpg)

### Step 3: – Open PuTTygen

Open puttygen, a utility to extract the private key from public-private key pair
downloaded.

![puttygen](https://technotaught.com/wp-content/uploads/2020/03/putty-4.jpg)

### Step 4: – Convert the private key from public-private key pair

Click Load button, select .pem file downloaded in, click open, it will display a
success message.

![How to connect ec2 instance using putty](https://i1.wp.com/technotaught.com/wp-
content/uploads/2020/03/putty-2.jpg?fit=800%2C473&ssl=1)

Click on Save private key button (with or without password for future use), save
it in a secure location as **.ppk** file

![How to connect ec2 instance using putty](https://technotaught.com/wp-content/uploads/
2020/03/putty-3.jpg)

###  Step 5: – Open PuTTygen

Open the PuTTY application.

![putty
](https://technotaught.com/wp-content/uploads/2020/03/aws1-3.jpg)

##  Step 6: – Enter Hostname

In AWS -> Instance-> copy hostname, expand SSH from the left pane(Public DNS(IPv4)).

![aws console](https://technotaught.com/wp-content/uploads/2020/03/aws-4.jpg)

Paste-on PuTTy Configuration

![How to connect ec2 instance using putty](https://technotaught.com/wp-content/uploads/
2020/03/putty-6.jpg)

## Step 7: – Enter .ppk file

Click SSH -> Auth and then browse for .ppk file generated in Step 6, click open 
to access VM instance.

![How to connect ec2 instance using putty](https://technotaught.com/wp-content/uploads/
2020/03/putty-7.jpg)

Then click on Open and it should connect you to your publically accessible EC2 instance(
in this scenario, this instance would be referred to as the Bastion host or a jump
box).

#### In PuTTY security alert click Yes to add instance host as trustable. 

If this is the first time you have connected to this instance, PuTTY displays a 
security alert dialog box that asks whether you trust the host to which you are 
connecting.

![putty](https://technotaught.com/wp-content/uploads/2020/03/putty-8.jpg)

### Step 8: – Login into an Instance

 Login using login name, in this case, ‘ubuntu’.

![Login into an Instance ](https://technotaught.com/wp-content/uploads/2020/03/putty-
9.jpg)

Let us know in the comment section if you have any problem related to Connect ec2
instance using putty

### Share this:

 * [  X ](https://technotaught.com/connect-ec2-instance-using-putty/?share=twitter)
 * [  Facebook ](https://technotaught.com/connect-ec2-instance-using-putty/?share=facebook)
 * [More](https://technotaught.com/connect-ec2-instance-using-putty/#)

 * [  WhatsApp ](https://technotaught.com/connect-ec2-instance-using-putty/?share=jetpack-whatsapp)
 * [  LinkedIn ](https://technotaught.com/connect-ec2-instance-using-putty/?share=linkedin)
 * [  Email ](https://technotaught.com/connect-ec2-instance-using-putty/?subject=%5BShared%20Post%5D%20How%20to%20connect%20ec2%20instance%20using%20putty&body=https%3A%2F%2Ftechnotaught.com%2Fconnect-ec2-instance-using-putty%2F&share=email)
 * [  Reddit ](https://technotaught.com/connect-ec2-instance-using-putty/?share=reddit)
 * [  Tumblr ](https://technotaught.com/connect-ec2-instance-using-putty/?share=tumblr)
 * [  Pinterest ](https://technotaught.com/connect-ec2-instance-using-putty/?share=pinterest)
 * [  Telegram ](https://technotaught.com/connect-ec2-instance-using-putty/?share=telegram)
 * [  Print ](https://technotaught.com/connect-ec2-instance-using-putty/#print?share=print)

### _Related_
