How To Connect The Ec2 Instance Putty

How To Connect The Ec2 Instance Putty

In this blog, i am going to reveal how to connect EC2 Instance with putty. For this we have to launch Instance with key-pair (PEM).

If you are not sure, then have a look on this blog https://cloudcomputingbymustafa.hashnode.dev/steps-to-launch-an-ec2-instance

So first install putty in your windows system from this link https://www.putty.org/

PuTTY is a free software that lets you securely connect to a remote computer over the internet.

PuTTYgen is a small tool that comes with PuTTY. Its job is to create and manage SSH key pairs.

PuTTyGen is used to convert PEM files to PPK files, Because we are using putty to connect the instance. Putty doesn’t support PEM files. So we are using PuttyGen to convert PEM file to PPK file.

Once you install the putty, automatically puttygen alos installed in your system.

Now open PuTTygen first

Now click on Load.

Now go to Downloads and select All Files and you can see the downloaded PEM file.

Now select the pem file

click on open

Now the PEM key is successfully imported, and click on ok

Now click on save private key

Now click on ok

Then save the PPK file to anywhere (Downloads) in your system and give the ppk file name as your-name.

Now it will gets saved in Downloads.

We have successfully converted the PEM file to PPK file.

Lets open Putty to connect the instance.

Open putty in your windows.

Enter the PUBLIC-IP of your instance and Host Name block

Next, on the left side expand the SSH Option and you will get Auth option expand that Auth option also and select credentials

Click on the first Browse option and go to Downloads on your system and upload PPK file.

click on open twice. and select accept option.

Now it will ask the login as user name, we must enter ec2-user (all small letters)

Now we have successfully connected the instance.

f you enjoy stories that help you learn, live, and work better, consider subscribing. If this article provided you with value, please support my work — only if you can afford it. You can also connect with me on Linkedin. Thank you!