perhaps you could write your script in perl ?

http://www.openbsd.org/4.3_packages/i386/p5-Net-SSH-Perl-1.30.tgz-long.html

/Pete


On 19 Jun 2008, at 16:31, Stuart Henderson wrote:

On 2008-06-19, Richard Storm <[EMAIL PROTECTED]> 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.

Which switch? On my HP switches I can just sftp the public
keys in (and fetch the config back out the same way...)

What is the cleanest way to pass password to ssh?

Not sure about "cleanest", but expect (in packages/ports) works ok.
You can generate a script with "autoexpect" and manually edit it.

Reply via email to