Access EC2 instance using Putty

+4 votes

I don't know as why this error is coming?

Can someone help me with this?

Nov 20, 2018 in AWS by Jino
• 5,820 points
36,751 views

2 answers to this question.

+5 votes
Best answer

I will tell you a descriptive way of using Putty to access your EC2 Instance

Step 1. Download puttygen for creating a .ppk file as putty doesn't accept .pem file generated by AWS.

Step 2. Convert your .pem file to .ppk file using PuttyGen.

Load your .pem file generated by AWS. Then save the private key (.ppk) file.

Step 3. Open Putty

Add you IP.

Add user name 

Add your ppk file 

Click on Open.

Give the ip address or the host name. Then in data section give the User name for the instance for linux its generally "ec2-user".

Step 4. Click open. 

Here it is. Now you can access your EC2 instance.

The error you were getting was because of the key file. 

Either the key file was not generated or you would be using the .pem file instead of .ppk.

Hope this helps.

answered Nov 20, 2018 by Priyaj
• 58,020 points

selected Dec 15, 2020 by MD
Best working solution on the Internet. I was searching for last 2 hours, but your solution worked for me.
0 votes

Hi,

There may be several reasons behind this error. One is already highlighted by @Priyaj in his answer. Apart from that also check the inbound rule in the EC2 instance. You need to allow port no. 22 in your instance as well.

answered Dec 15, 2020 by MD
• 95,460 points

Related Questions In AWS

+1 vote
2 answers

How to launch and access an instance using AWS-CLI?

aws ec2 run-instances --image-id ami-id --key-name yourkeyname ...READ MORE

answered Feb 23, 2019 in AWS by Shashank
• 1,370 points
1,946 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

Launching an EC2 Instance using AWS SDK Java

package com.ec2application.ec2application; import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.regions.Regions; import com.amazonaws.services.ec2.AmazonEC2; import ...READ MORE

answered Jan 22, 2019 in AWS by Priyaj
• 58,020 points
6,939 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP