Cannot ssh into Bamboo Elastic Instances

I am having trouble installing software on Bamboo Elastic Instances. When I try to run any "yum install" command on a script during a build job, it reports I do not have permissions. When I try to sudo the commands, the error is that there is no tty. When I try "su -c", the error is similar: "standard in must be a tty".

This is the current content of my script:

echo "Installing dependencies..."
sudo yum -y install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

The main problem, tough, is that I cannot ssh into any of the instances I create through Bamboo (all of them default Bamboo Amazon Linux instances).

I've followed the instructions and created and destroyed what it feels like a hundred instances already, but no luck.

When I try to connect, I always get access denied:

$ ssh -i elasticbamboo.pk ec2-user@ec2-54-226-175-246.compute-1.amazonaws.com
The authenticity of host 'ec2-54-226-175-246.compute-1.amazonaws.com (54.226.175.246)' can't be established.
RSA key fingerprint is 2a:81:77:60:6b:fa:66:21:9f:37:14:c6:49:bc:3f:f7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-54-226-175-246.compute-1.amazonaws.com,54.226.175.246' (RSA) to the list of known hosts.
Permission denied (publickey).

Any ideas or suggestions? Is there a way anyone from Atlassian can take a look at our account?

This is with Bamboo OnDemand. We have JIRA and Confluence 6.1.x

Thank you.

3 answers

I have the same problem - did you find a solution?

If you can become root, on my client server not my Bamboo server i have a user named bamboo and in visudo (a linux command)

i put:
Defaults:%bamboo !requiretty
Defaults:bamboo !requiretty

to run commands with sudo.

Also how are you creating your .ppk file from amazons .pem?
I have never had an issue signing on with my .ppk file generated by Putty from amazons .pem file downloaded after the key is generated?

Good luck

0 vote

use ec2-user@your instance. Otherwise ssh will use your current account name which probably does not exist on that instance.

The full command line for ssh is listed on Bamboo instance page for your convenience (also things like Windows instance passwords, etc.)

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
Posted 3 hours ago in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

22 views 0 2
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