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 ?
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 ie
ubuntu for all ubuntu
ec2-user for all RHEL.
Please check the AMI specific username for the newly created AMI
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.