SSH to EC2 linux instance from Windows

Another possible solution is to use PuTTY but follow Amazon's guide for doing so. I found some other guide's that weren't as clear in the steps but I was able to get PuTTYgen to work correctly when I used their guide.

  1. Install PuTTY.
  2. Follow Amazon's guide for converting your PEM file to the PuTTY PPK format.
  3. Connect to your server!

As for newlines, maybe you need to run unix2dos or some other program that will fix that for you?


The .pem file Amazon Web Services gives you is supported by the openssh client implementations, but for a Windows-based client that works directly with the .pem file without converting it with puttygen.exe, look into Bitvise Tunnelier.


If anybody's looking for windows 10 solution.
In Windows 10, you can use powershell.
Use below command.

ssh -i \..\location-to-pem-file.pem [email protected]

If ssh is not supported in your windows 10 machine, follow this url for installation.
I used it and suggested the same.