How to Connect to AWS using PuTTY

I was given a pem file and these instructions:

chmod 400 dev-server.pem
ssh -i dev-server.pem ec2-user@

I assume these instruction are for a Linux machine. I'm on a Windows machine and I use PuTTY to connect to SSH. So I don't understand how to connect.

How do I use this pem file to connect through my Windows installation?
Who is Participating?
larsrohrConnect With a Mentor Commented:
You can use PuTTYgen to convert that pem key to a PuTTY ppk file.
Start PuTTYgen, and go to Conversions -> Import.  Import your pem file, and then click Save Private Key.  Note where you save the resulting ppk file.

Now in PuTTY, you can go into Connection -> SSH -> Auth, and use the Browse button to enter this ppk file into the "Private key file for authentication" space.
Looks like you'll also want to set the username as "ec2-user" under Connection -> Data,
and the Host Name as "" under Session.

Enter a name in the Saved Sessions field, such as "AWS Connection" and click the Save button, so you'll have all this for later.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.