ssh per script steuern
Florian Lohoff
flo at rfc822.org
Mon Apr 1 22:24:03 CEST 2002
On Mon, Apr 01, 2002 at 12:00:36AM +0200, Oliver Regehr wrote:
> Hallo!
>
> ich versuche gerade mittels eines Scriptes einen Cisco-router
> umzukonfigurieren. Leider klappt es noch nicht so, wie es soll.
>
> Das Script soll auf den Router verbinden und ein paar Configs ändern. Die
> Verbindung wird per ssh hergestellt. Wie kann ich nun per script das
> Passwort vom ssh eingeben? Mit expect scheint das nicht so richtig zu klappen
> - es kann aber auch mein Fehler sein.
>
Um expect wirst du nicht drumherum kommen - Wie sieht denn dein expect
script aus ? Normalerweise ist das problemlos - Aus expect ssh spawnen
und expect "assword:" send "blaupause\n"
Flo
--
Florian Lohoff flo at rfc822.org +49-5201-669912
Nine nineth on september the 9th Welcome to the new billenium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020401/f2be7ba8/attachment.sig>
More information about the Linux
mailing list