I downloaded the pem file on my Windows machine and I am able to connect to my instance with the puttygen generated ppk file (which has a public and a private key in it).
I copied the pem file over onto a linux box and tried ssh -i pemfile.pem [email protected] -v but ssh is asking me for a password. The debug output (-v) is as follows:
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/w/jpgate.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
[email protected]'s password:
So I suppose I need a public key, right? How do I get the public key on linux?
Why does every tutorial tell that I only need to ssh -i key.pem [email protected]?