I've seen issues like this when the key has been copy/pasted and an editor has added line-breaks. Could this be the issue?
Also confused about AMIs (Amazon Machine Images) in this context but it could be you're using an image that needs a specific user name.
Not able to login to EC2 instance through putty.asked 6 months ago
Unable to connect to EC2 Instance through Puttyasked 3 years ago
Unable to SSH into newly created EC2 Instancesasked 2 years ago
Unable to Connect to Instanceasked 4 months ago
Unable to enter other created instances with putty, except for first instanceasked 3 months ago
Unable to connect to instance from a newly created ami: Failed to start Service for snap ap…amazon-ssm-agent.amazon-ssm-agentasked 8 months ago
Newly Created Lightsail Instances - refused to connect errorasked 9 months ago
Unable to create instance from newly created AMIasked 3 years ago
Unable to connect to EC2 instance in private Subnetasked a year ago
Replace root keypair for ec2 instanceAccepted Answerasked 2 months ago