Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Permission denied when accessing EC2 instance

Florent Ferere (DO NOT USE) October 30, 2013

I am having a similar problem, but no passphrase is being asked for:

$ ssh -i elasticbamboo.pk ec2-user@ec2-54-234-XXX-XXX.compute-1.amazonaws.com
The authenticity of host 'ec2-54-234-78-100.compute-1.amazonaws.com (54.234.XXX.XXX)' can't be established.
RSA key fingerprint is a3:37:bf:ac:fc:e3:28:8e:34:75:53:f5:e2:5a:de:f7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-54-234-XXX-XXX.compute-1.amazonaws.com,54.234.XXX.XXX' (RSA) to the list of known hosts.
Permission denied (publickey).

4 answers

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 31, 2013

You can't delete the keypair from Bamboo. You have to access AWS console.

0 votes
Florent Ferere (DO NOT USE) October 31, 2013

I was refering to Bamboo Admin -> Elastic Bamboo -> Configuration -> AWS Credentials Management

I uploaded both X509 files but that didn't change anything.

I've also tried to ssh with ec2-user, root and bamboo users, but I always get the same error:

$ ssh -i elasticbamboo.pk ec2-user@ec2-50-16-84-24.compute-1.amazonaws.com
Permission denied (publickey).

0 votes
Florent Ferere (DO NOT USE) October 30, 2013

How do I delete the key pair? I have deleted the instance and created a new one over and over. I have also changed the configuration to use custom private key and certificate, but still that does not work.

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2013

Looks like a key mismatch, maybe someone else regenerated that key on your acount. The resolution is the same - just delete the key pair (or find someone who regenerated it).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events