1 Answers
From your description it sounds like you added the public key under the root user’s authorized_keys instead of ec2-user’s. If you add the second public key to the location in ec2-users home folder (should be /home/ec2-user/.ssh/authorized_keys) it should work fine
makes sense. thank you