How to fix ‘sudo: no tty present and no askpass program specified‘ ?

SSH > Linux / Ubuntu / CentOS

Solution: sudo -S <cmd>
The -S (stdin) option causes sudo to read the password from the standard input instead of the terminal.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.