How to resolve the error AWS EC2 permission denied?

860    Asked by SonamSingh in AWS , Asked on Feb 23, 2021
Answered by Sonam Singh

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



Your Answer

Interviews

Parent Categories