ssh and remote sudo not hiding password
Colin Law
clanlaw at googlemail.com
Sat Nov 7 09:13:56 UTC 2009
2009/11/6 Matt Brown <mbrown7776 at gmail.com>:
> Found this on commandlinefu.com
>
> 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).
Colin
More information about the ubuntu-users
mailing list