Bugzilla – Bug 828
No tty present and no askpass - output possible solution
Last modified: 2019-10-14 10:36:13 MDT
Putty and ssh output "sudo: no tty present and no askpass program specified" because they are often not configured correctly. Enchancement: Add an additional line of text, possible solution, when issue occurs. sudo: no tty present and no askpass program specified. Did you mean "sudo -S"? This will prompt for a password.
I expanded the error message to make it more helpful: https://www.sudo.ws/repos/sudo/rev/f15ffeffff32
Fixed in sudo 1.8.28