Using .PEM file from AWS, asking for passphrase

I had an issue similar to this. I'd copied a private key from a .pem file. When I pasted it into another .pem file I noticed a % at the end of -----END RSA PRIVATE KEY-----, like this -----END RSA PRIVATE KEY-----%. When I tried to connect with it to a private server I was asked for a passphrase. I went back and removed the % and it worked fine.


I ran into the same issue. if you are copying from one editor into another, Ensure you are copying from : -----BEGIN RSA PRIVATE KEY----- till -----END RSA PRIVATE KEY-----

This is most definitely an issue with the pem key file not getting copied fully.