Ubuntu – In AWS Ubuntu AMI server refused our key while SSH login

amazon ec2ssh

I just have created a large-instance for ubuntu-AMI on Amazon ec2. generated a key pair & ssh open in firewall.
now using puttygen i got ppk file since i am using window machine. now using publuc DNS i am trying to connect to server but while fetching username and pressing enter key it says "server refused our key".

how to solve this problem.

please someone help.

thanks.

Best Answer

i just have got the solution. here i have made a mistake while making ppk file from pem file using puttygen.exe, i was suppose to load the pem file & then save private key. insted of that i was importing the pem file generating a key pair and then saving private key. this was creating a problem to me.

thanks for the support.