I'd agree with Matt (sudo should fail when there is no terminal). However, upstream may disagree. There is an upstream bug that was rejected for this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=233730 -- sudo password not masked when connecting with ssh https://launchpad.net/bugs/56755 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
