How to resolve the error AWS EC2 permission denied?
Attempt the following command:
ssh -i ~/.ssh/[keypair name] ec2-user@[ec2 instance ip]
This ought to get you in. Make sure to utilize the login client name as per the OS in your occasion.
For Ubuntu-based machines use: ubuntu
For Debian: admin
For Centos: centos
For Amazon Linux: ec2-user
For the remainder of the machine types, useĀ ec2-user , as aws permission denied publickey