ssh login to AWS instance created by Bamboo Ondemand

I've been trying to configure Bamboo Ondemand to use AWS instances, but so far it's been quite a pain. First I had to set the region to US East, because for the EUR region I would not see any instance images available.

Now I've managed to launch a instance (type ami-a30b44ca) but I am not able to ssh into it. This line is giving me login refushed error every time, even when I try usernames like ubuntu, bamboo or root (I've obfusciated the hostname):

ssh -i /data/jirastudio/bamboo/home/xml-data/configuration/elasticbamboo.pk ec2-user@ec2-xx-xx-xx-xx.compute-1.amazonaws.com

Any ideas why this is happening and how I can fix it? Because right now the build server works, but I cannot connect to it to see what's actually going on with the files.

3 answers

1 accepted

This widget could not be displayed.

I found the problem with the Ubuntu image not starting the Bamboo agent: there was a problem in /etc/rc.local that broke the script:

cp -a /home/ubuntu/.ssh /home/ec2-user/.ssh

should be

cp -a /home/ubuntu/.ssh/* /home/ec2-user/.ssh

That fixed it for me atleast.

This widget could not be displayed.

You need to download https://nascom.atlassian.net/builds/admin/elastic/getPkFile.actionto your local drive and use it in the ssh command instead of -i /data/etc .

This widget could not be displayed.

I ofcourse did that. What turned out to be was that not all of the images listed by Bamboo had a login that worked, but after trying a few I managed to login.

On a sidenode, when I tried the Ubuntu image I could login (with root@) but no Bamboo java install was done on the server. So it was up and running, but not usable for Bamboo.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

125 views 15 7
Join discussion

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