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

Learn what is a tty and how to solve 'sudo: sorry, you must have a tty to run sudo' error when using ssh to execute a sudo remote command.

Defaults:myuserupdated Sep 20202 examples