On 16:14, Thu 19 Jun 08, Richard Storm wrote: > I am writing script, that would ssh to switch and dump configuration in file. > > 1) Since it is switch, i have no way to make use of public key > authentication, because I have no way to store pubkey on switch. > > 2) Since I'm using dedicated box for backups, I don't need to hide > password from ps. > > > What is the cleanest way to pass password to ssh? >
Try expect -- Michiel van Baak [EMAIL PROTECTED] http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD "Why is it drug addicts and computer aficionados are both called users?"