How can I change the authorized RSA key for Elastic Bamboo Instances?

When I boot up an Elastic Bamboo instance, the Linux console log prints this:


ci-info: +---------+-------------------------------------------------+---------+---------------+
ci-info: | Keytype | Fingerprint (md5) | Options | Comment |
ci-info: +---------+-------------------------------------------------+---------+---------------+
ci-info: | ssh-rsa | a1:a1:a1:03:6c:11:a1:4d:a1:4d:a1:4d:a1:4d:a1:1a | - | elasticbamboo |
ci-info: +---------+-------------------------------------------------+---------+---------------+

But the fingerprint for the "elasticbamboo" key pair in "AWS Console > EC2 > Network & Security > Key Pairs" is different.

How do I configure Bamboo to authorize the correct key pair for ssh to the node?

It looks like Bamboo could be using an old key that I might have deleted and recreated, instead of checking the current value of the "elasticbamboo" key pair and using that key instead.

2 answers

1 accepted

I've found the issue for my particular case.

The "instance startup script" was causing the system to hang, which is a separate issue.

The authorized_keys file gets initialized after the instance startup script runs, which blocks SSH access if the instance startup script hangs the process. But if nothing goes wrong, Atlassian Bamboo reads the latest value of the "elasticbamboo" key file and puts in in authorized_keys successfully.

The Elastic Bamboo instance generation should be changed such that the authorized_keys file gets initialized first, so users can SSH into boxes with hung instance startup scripts and check logs to see what's broken.

@Przemyslaw Bruski, could you make that happen? I currently can't debug my own instance startup script issue.

0 vote

Did you check in the correct region? Keys are region-bound.


Yes, all keys and instances are in us-east.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,784 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you