For Ubuntu instances:
chmod 600 ec2-keypair.pem
ssh -v -i ec2-keypair.pem email@example.com
For other instances, you might have to use ec2-user instead of ubuntu.
Most EC2 Linux images I've used only have the root user created by default.
Unable to SSH into my EC2 Instance Permission denied (publickey)asked 3 years ago
SCP permission denied for some files, not all??asked 2 years ago
ssh key-pair anomaly on copying AMIasked 9 months ago
I have not connect ec2 instance by instance and ssh keyasked 7 months ago
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)- Windows 11asked a month ago
SSH timeout AWS EC2asked 7 months ago
AWS ssh access 'Permission denied (publickey)'Accepted Answerasked 3 years ago
SSH To EC2 Instance Using Wsftp Proasked 2 years ago
How long does the one-time use SSH public key expire?Accepted Answerasked 3 years ago
AWS Transfer Family - SSH Key Pairasked a year ago