0

I am beginning using AWS. Previously, I have created AWS "Amazon AMI" type instance. I could connect using putty without an issue using a key-pair I have created before hand.

I am now trying to do the same using a "Ubuntu AMI". However, proceeding the exact same way, putty throws me "the server refused our key" error.

I thought I understand key-pair is not AMI-specific. What could be wrong then ?

1 Answer 1

1

The key pair is not AMI specific. But the AMI is key specific.

This means that you can create "n" no. of instances with "n" key-pairs.

Also you can use a single key-pair for all "n" instances but you need to select that at the booting time.

Also the username is AMI specific i.e

ubuntu for all ubuntu

ec2-user for all RHEL.

Please check the AMI specific username for the newly created AMI

1
  • Spot on. I did not see that the username changed between AMI. Thanks ! Commented Sep 8, 2019 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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