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  ubuntu@ec2-54-227-242-179.compute-1.amazonaws.com
How do I connect through Filezilla to upload files
Jul 16, 2018 in Cloud Computing by brat_1
• 7,200 points
1,457 views

1 answer to this question.

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,360 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
3,367 views
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
• 2,360 points
1,128 views
+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,200 points
4,104 views
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
2,594 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+1 vote
2 answers

AWS CloudWatch Logs in Docker

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

answered Sep 7, 2018 in AWS by bug_seeker
• 15,510 points
2,066 views
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,360 points
1,552 views
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,360 points
4,799 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP