Bamboo SSH Task - Is there a possible way to add -t for ssh remote connection

Hi :

Recently I'm using Bamboo SSH task to handle some jobs related with deployment in remote server, however, there's some commands need sudo permission in my shell script, just like "sudo pkgadd", as I add it as a Bamboo SSH Task and run it, in the log I saw there's an error indicated "ssh no tty present and no askpass program specified", as I googled solution, I found add -t parameter when we setup ssh connection could resolve this problem, so Just want to know is there anyway we can define these params like "-t" in Bamboo SSH Task ?



3 answers

Requiretty is a security measure. Also having to modify each server's config is less than ideal. When will we be able to specify params to ssh?

Also I need to be able to run tests in the remote SSH with access to TTY. 

1 vote

If you run this:

sudo sed -i s/.*requiretty.*// /etc/sudoers

on the destination machine, you won't need a TTY to log in.

That's quite a cavalier solution, and not something you can necessarily do in production environments with tight security restrictions. Why can this not be a simple checkbox option on the SSH Task?


Note that you have full SSH and root access to your AWS instance, so yes, you can perform this setting.

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,561 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