[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo password visible through ssh command line



Javier Barroso wrote:
Hi,

In sid with key passwordless auth :

ssh user@server "sudo ls"
password: password

And password is shown you

Any tip to avoid this ?

Where should be reported this bug if it could be consider as such (note I don't know if there are more programs with this problem)?

This is not a bug. The password is shown because no tty is allocated to the command. If you want a tty to be allocated, pass the -t option to ssh, as in "ssh -t user@server sudo ls"


Greetings

Debian Rocks!



--

If you can't explain it simply, you don't understand it well enough.
                                       -- Albert Einstein


Reply to: