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 ?
Thanks
Pason
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you run this:
sudo sed -i s/.*requiretty.*// /etc/sudoers
on the destination machine, you won't need a TTY to log in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Note that you have full SSH and root access to your AWS instance, so yes, you can perform this setting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.