ssh and remote sudo not hiding password

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


2009/11/13 Matt Brown <mbrown7776 at gmail.com>:

>
> 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
https://wiki.ubuntu.com/SecurityTeam/FAQ#SSH where an even better
solution is to be found:

ssh -t <ip> sudo shutdown -h now

thanks

Colin




More information about the ubuntu-users mailing list