[Ilugc] Password as an argument in SSH

Roshan George roshan at arjie.com
Sat Mar 20 19:37:47 IST 2010


On Sat, 2010-03-20 at 18:28 +0530, Varadharajan Mukundan wrote:
> Hi all,
> 
> I would like to know, whether it is possible to pass the password as an
> argument in SSH.

Can't imagine a good reason to do this. Let's say you did do that. Then
anyone who ran `ps aux | grep ssh` would be able to see your password!
Still, if you really must, you could write a script for expect that does
what you want.

Why don't you tell us why you want to do this so that we can suggest a
possibly better way of going about things?
-- 
Roshan George <roshan at arjie.com>



More information about the ilugc mailing list