I was setting up automated logon with SSH, and wanted to have root access via sudo to perform certain tasks. Ended up getting these errors when I tried to run sudo commands over the ssh link.
1 |
sudo: no tty present and no askpass program specified |
The cause of this error is not having the correct setup on your /etc/sudoers file. Here is the fix.
Edit your sudoers file with
visudo
Ensure your usernames entry looks like this.
1 |
jenkins ALL=(ALL) NOPASSWD: ALL |
Ensure the NOPASSWD is present, that does the trick.