ssh and remote sudo not hiding password

Colin Law clanlaw at
Sat Nov 7 09:13:56 UTC 2009

2009/11/6 Matt Brown <mbrown7776 at>:
> Found this on
> stty -echo; ssh HOSTNAME "sudo some_command"; stty echo
> See if it does what you need.

Yes, that does work, and thanks for pointing out a useful website I
was unaware of.  Marc Deslauriers has pointed me to a even better
solution (see later email).


More information about the ubuntu-users mailing list