Hello Experts,
I am new to AWS and trying out migrating my OS(Oracle Linux 6) into AWS.
However,when i am trying to login to the EC2 ip, i am getting error message "Server refused our key". Not sure if this has anything related to improper migration that i did.I have given high level steps that i used to create a custom AMI.
I has used users "root","oracle"(OS users available in my on premise VM) & "ec2-user".How ever each time i got same login error. Could anyone help me in understanding what is wrong?
Creating Custom AMI:-
- Exported my Oracle Linux 6 VM as an ova file
- Copied that to S3 bucket
- After creating required roles and all,ran the ec2 import image function as below
aws ec2 import-image --description "My Custom VM" --disk-containers "file://D:\containers.json"
where below is content of containers.json file
[
{
"Description": "My OELCustom OVA",
"Format": "ova",
"UserBucket": {
"S3Bucket": "mycustomami",
"S3Key": "Test.ova"
}
}]
- After the image import task was completed,I could see the new AMI in my AMI console section
- I spinned up a new Ec2 with this AMI having port 22 & other ports open for all traffic.
PEM file was downloaded.
- The EC2 came in to RUnning status with all status checks completed without any issues.