On Fri, 27 Sep 2013 12:34:43 -0400, Shawn McMahon wrote: > Try forcing tty allocation with a "-t" to the ssh command: > > ssh -t localhost ./sudotest.sh In some cases you may need to force a tty with -tt instead. This is mostly limited to cases where stdin is a pipe. - todd