[Linux-disciples] Sudo prompts remotely

Chung-chieh Shan ccshan at post.harvard.edu
Thu Oct 27 20:35:27 EDT 2005


On 2005-10-27T14:00:12-0400, Stephen R Laniel wrote:
> Hmm: Try running a command line
> 
> ssh hostname sudo ls \~
> 
> It'll prompt you for the sudo password on the other end.
> When you start typing your password, it'll appear on the
> screen in the clear. Is there any way to keep that password
> off the screen?
> 
> More generally, this is the problem I'm trying to solve:
> http://laniels.org/weblog/tech/free_software/running_commands_remotely.html
> 
> I want to ensure that no matter what script is being invoked
> remotely, the sudo password will never appear on my screen.

Perhaps you want to pass the following switch to ssh.

     -t      Force pseudo-tty allocation.  This can be used to execute arbi‐
             trary screen-based programs on a remote machine, which can be
             very useful, e.g., when implementing menu services.  Multiple -t
             options force tty allocation, even if ssh has no local tty.

-- 
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
2005-11-06 Against Exploiting the Environment in War http://tinyurl.com/adhg9
2005-11-20 Universal Children's Day http://www.un.org/depts/dhl/children_day/
2005-11-25 Elimination of Violence Against Women http://tinyurl.com/drd57
2005-11-25 Buy Nothing Day http://www.buynothingday.co.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051027/1be59f0a/attachment.pgp


More information about the Linux-disciples mailing list