You cant provide a password as an argument to ssh. However you have some options depending on what exactly you want to do:
- You can use tcl/expect script to make it interactive and supply the password in your script through expect - You can use ssh-keygen which uses private-key/public-key methods and thereby bypass a challenge from the ssh server with a password (However, this can be done only if the server is a standard server which you know in a pre-determined manner that you are going to be communicating with). Try ssh man page to view more details on this option. HTH Vasan On Sat, Mar 20, 2010 at 6:28 PM, Varadharajan Mukundan <[email protected] > wrote: > Hi all, > > I would like to know, whether it is possible to pass the password as an > argument in SSH. > > Thanks, > > M. Varadharajan > http://www.thinkasgeek.wordpress.com > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
