Issue
I cannot connect to my AWS instance. I've searched the other related topics, they've not given me the answer.
I have created a Centos AMI and gone through all the steps. At the end I have imported a key pair.
The instance is created and everything seems fine. Except that I cannot connect to the server.
VIA PUTTY Putty says: Login As, followed by password request, which of course I don't have. I dont know how to connect using a PEM file there does not seem to be a way to connect using PEM file.
VIA BITVISE Ive created the keypair in Bitvise. When I connect Ive tried username ec2-user and root and asked for the initial_method to be publickey+slot2+password (and without password).
It ALWAYS asks me for a password, And when I enter (or not) the passphrase I created with the key it fails EVERYTIME to connect.
Driving me crazy, WTH Amazon! Just create a user/ password for us to connect with!!! This key pair thing is just crazy.
Solution
you can-not login with pem file you have to convert pem file to ppk by using puttygen, then you give your hostname and this newly generated ppk file, it will allow you to login. you have to use ec2-user in user-name.
Answered By - Helping Hand..