ssh and remote sudo not hiding password

Colin Law clanlaw at
Fri Nov 13 16:51:14 UTC 2009

2009/11/13 Matt Brown <mbrown7776 at>:

> Did that command line work for you or did you figure out another way to do
> it?

Matt, you must have missed a couple of posts, yes your suggestion:
stty -echo; ssh HOSTNAME "sudo some_command"; stty echo
did work but Marc Deslauriers pointed me at where an even better
solution is to be found:

ssh -t <ip> sudo shutdown -h now



More information about the ubuntu-users mailing list