Access EC2 instance using Putty

+3 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,660 points

1 answer to this question.

+2 votes

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
• 57,530 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
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; import ...READ MORE

answered Jan 22, 2019 in AWS by Priyaj
• 57,530 points