What about having sudo issue a warning but otherwise not change behavior? For example:
$ ssh remotemachine sudo apt-get update Warning: not on a terminal -- password will be echoed! Password: ...
That way tools that are expecting to see "Password:" before continuing won't blow up, and humans will see the warning, and think twice.
What about having sudo issue a warning but otherwise not change behavior? For example:
$ ssh remotemachine sudo apt-get update
Warning: not on a terminal -- password will be echoed!
Password:
...
That way tools that are expecting to see "Password:" before continuing won't blow up, and humans will see the warning, and think twice.