SSH access to Amazon EC2 instance shows permission denied

0 votes

I have created a key pair for login and also have the .pem file and also given permission

chmod 600 pem file.

 I used the following ssh command to log in but it says " permission denied"

ssh -i /home/rahul/key.pem
How do I connect through Filezilla to upload files
Jul 16, 2018 in Cloud Computing by brat_1
• 7,080 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The error is an authentication error. The reason for this may be one of the following:

  1. Either the instance is not using the same key pair.
  2. Maybe you are trying to connect to the wrong host
  3. Maye the username is incorrect. For ubuntu based AWS, the username is ubuntu else for other the username is ec2-user. 

Check with the above three conditions, you will be able to login.

answered Jul 16, 2018 by Gopalan
• 1,260 points

Related Questions In Cloud Computing

0 votes
3 answers

Using EC2 instance to access S3 bucket locally

You can use the boto library to ...READ MORE

answered Nov 30, 2018 in Cloud Computing by Aniket
0 votes
1 answer

Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

ELB automatically distributes incoming application traffic across ...READ MORE

answered Jul 12, 2018 in Cloud Computing by ArchanaNagur
• 1,790 points
+4 votes
2 answers

Amazon S3 Permission problem - How to set permissions for all files at once?

This can be done by setting the ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,080 points
0 votes
3 answers

Is it possible to redirect a domain to Amazon EC2?

Create an Elastic IP on the AWS ...READ MORE

answered Nov 30, 2018 in Cloud Computing by Abhinav
+13 votes
2 answers
+1 vote
2 answers

AWS CloudWatch Logs in Docker

The awslogs works without using ECS. you need to configure ...READ MORE

answered Sep 6, 2018 in AWS by bug_seeker
• 15,300 points
0 votes
1 answer

How to duplicate AWS EC2 instance without any downtime?

Technically it is not possible, because the ...READ MORE

answered Jul 24, 2018 in Cloud Computing by Gopalan
• 1,260 points
0 votes
1 answer

How to self terminate an EC2 instance?

To self-terminate an EC2 instance, follow the ...READ MORE

answered Jul 26, 2018 in Cloud Computing by Gopalan
• 1,260 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.