How to access EC2 instance using puTTY

What you will learn here about AWS EC2 instance access using puTTY

  • How to access EC2 instance using puTTY

In order to access EC2 instance using puTTY first, you need to create an EC2 instance. If you do not know how to create an EC2 instance on AWS please visit the following link.

AWS create ec2 instance on AWS

How to access EC2 instance using puTTY

Please follow the following steps to know How to access EC2 instance using puTTY

1)Assuming you have created an EC2 instance on AWS

2)Now please open the PuTTy key generator. If you do not have a PuTTy key generator and PuTTY then please click on the following link to install the PuTTy key generator and PuTTY.

Installing PuTTY and PuTTYgen

3)Now please follow the following steps to generate the private key which is shown below

  1. Open the PuTTY key generator
  2. Click on Load
  3. Select All Files option which is shown below
  4. Select downloaded your private key .pem file.
  5. Click on Open

How to access EC2 instance using puTTY
4)Now please follow the following steps to save the private key which is shown below

  1. Please click on OK if it is asking while loading the private key file
  2. Click on Save private key

access EC2 instance using puTTY

5)If you are getting any warning while saving the file then please click on Yes which is shown below.
AWS EC2 instance using puTTY

6)Now please select the path where you want to save the Private key and enter the file name which is shown below
EC2 instance access using puTTY

7)Now please open the puTTY

8)Now please follow the following steps to access EC2 instance

  1. Click on Session
  2. Enter Host Name as the public IP address of EC2 instance or Public DNS of EC2 instance
  3. Now please click on Connection -> SSH -> Auth which is shown below
  4. Now browse the saved private key which is shown below
  5. Click on Open

EC2 instance access using puTTY AWS

9)Once you click on Open, It will ask you for Security Alert, So please click on Yes which is shown below
AWS EC2 instance access using puTTY

10)Once you click on Yes, It will as for username to login. So please enter the Username. Default username for ubuntu EC2 instance is ubuntu which is shown below.
AWS EC2 instance access using puTTY login

You may also like...

Leave a Reply