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 ?

askedSep 8, 2019 at 16:39
FenryrMKIII's user avatar

1 Answer1

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

answeredSep 8, 2019 at 17:03
error404's user avatar
Sign up to request clarification or add additional context in comments.

1 Comment

Spot on. I did not see that the username changed between AMI. Thanks !

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.