AWS gave me a private key in the format of .pem. I am trying to use it with PuTTY but failed and I read I need to generate a key with PuTTYgen but PuTTYgen is only for Windows. So I am trying to use the Linux command ssh-keygen. But what is exactly the command that can generate such a key that PuTTY can use?
BTW, I can connect with console using ssh without problem with the .pem file.