sudo: sorry, you must have a tty to run sudo

# sudo nano /etc/sudoers

Comment the line "Defaults requiretty"

Enjoy :)

Comments