Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Jul 25 '11 at 14:57

This question came from our site for professional and enthusiast programmers.

    
Did you add the publickey to the authorized_keys file in /home/user/.ssh/? That will allow the server to process the keys. –  Thomas W. Jul 25 '11 at 19:32
    
Please use the contact us link at the bottom of this page to ask for your unregistered account and your new registered account to be merged. Thanks. –  fossfreedom Mar 3 '13 at 10:09

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
how to import a .pem file? when i try to import it only allows me to import ppk file –  Harsha M V Nov 9 '13 at 6:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.