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