telnet per script
Hallo, gibt es eine Moeglichkeit eine Telnet-Verbindung zu einem anderen Rechner mit einem Script ausfuehren zu lassen? Auf dem anderen Rechner laeuft ein login-script das ein Menu zur Verfuegung stellt, von dem ich nur einen Punkt benoetige. Es muesste so aehnlich funktionieren wie der chat beim pppd. Vielen Dank fuer Euere Hilfe Gruss Claus
Hi Claus, From: Claus Teubner <Claus.Teubner@mw-consulting.com>
gibt es eine Moeglichkeit eine Telnet-Verbindung zu einem anderen Rechner mit einem Script ausfuehren zu lassen?
Ja, perl hat diverse Module, womit das möglich ist. Ich empfehle aber SSH. Perl hat dafür auch einige Module. http://search.cpan.org Eventuell funktioniert das auch mit der Bash, aber davon habe ich nicht soviel Ahnung. Ciao Andre
Hallo, Zitiere Andre Heine <linux-experience@gmx.net>:
From: Claus Teubner <Claus.Teubner@mw-consulting.com>
gibt es eine Moeglichkeit eine Telnet-Verbindung zu einem anderen Rechner mit einem Script ausfuehren zu lassen?
Ja, perl hat diverse Module, womit das möglich ist. Ich empfehle aber SSH. Perl hat dafür auch einige Module.
Eventuell funktioniert das auch mit der Bash, aber davon habe ich nicht soviel Ahnung.
mit ssh benutzer@rechner skript sollte es funzen, wenn Du noch eine Paßwortverifizierung über Key machst brauchst Du auch kein Paßwort. Bitte schaue nochmal in man ssh wegen dem skriptaufruf aber sowie ich\'s im Kopf habe einfach nur anhängen, ich habe gerade leider \"nur\" SCO hier und da geht es etwas anders :-) Für die Sache mit den ssh-key schau mal im Listenarchief, dort habe ich eine SuperAnleitung gefunden. Gruß Alex
Hallo Alex, Alexander Sommer wrote:
Hallo,
Zitiere Andre Heine <linux-experience@gmx.net>:
From: Claus Teubner <Claus.Teubner@mw-consulting.com> mit ssh benutzer@rechner skript sollte es funzen, wenn Du noch eine Paßwortverifizierung über Key machst brauchst Du auch kein Paßwort.
Leider kann ich mit ssh nicht auf den Remote-Rechner zugreifen, und ich kann es auch nicht aendern, da der Rechner bei einer anderen Firma steht. Ich brauche eine Loesung fuer telnet. Gruss
Hallo Claus, * Am 06.06.2002 um 12:51 Uhr schrieb Claus Teubner:
Leider kann ich mit ssh nicht auf den Remote-Rechner zugreifen, und ich kann es auch nicht aendern, da der Rechner bei einer anderen Firma steht. Ich brauche eine Loesung fuer telnet.
man expect -Jürgen -- Jedes technische Problem kann mit genügend Zeit und Geld gelöst werden. Du bekommst nie genug Zeit und Geld. / Registered Linux-User #130804 http://counter.li.org \ \ Linux Stammtisch Bremerhaven http://linux.hs-bremerhaven.de /
Hallo, Zitiere Claus Teubner <Claus.Teubner@mw-consulting.com>:
Alexander Sommer wrote:
Zitiere Andre Heine <linux-experience@gmx.net>:
From: Claus Teubner <Claus.Teubner@mw-consulting.com> mit ssh benutzer@rechner skript sollte es funzen, wenn Du noch eine Paßwortverifizierung über Key machst brauchst Du auch kein Paßwort.
Leider kann ich mit ssh nicht auf den Remote-Rechner zugreifen, und ich kann es auch nicht aendern, da der Rechner bei einer anderen Firma steht. Ich brauche eine Loesung fuer telnet.
Das ganze geht dann aber nicht über\'s internet sondern hoffentlich über eine Dial-in Leitung? Wenn nicht solltest Du die Firma davon überzeugen, ssh zu installieren. Denn bei telnet wird das Paßwort und alles andere unverschlüsselt übertragen, was Du hoffentlich ja weißt. Aus diesem Grund setzte ich kein telnet mehr ein und kann dazu Dir leider nicht weiterhelfen. Gruß Alex
Hallo Alex, Alexander Sommer wrote:
Hallo,
Zitiere Claus Teubner <Claus.Teubner@mw-consulting.com>:
Alexander Sommer wrote:
Zitiere Andre Heine <linux-experience@gmx.net>: Das ganze geht dann aber nicht über\'s internet sondern hoffentlich über eine Dial-in Leitung? Wenn nicht solltest Du die Firma davon überzeugen, ssh zu installieren. Denn bei telnet wird das Paßwort und alles andere unverschlüsselt übertragen, was Du hoffentlich ja weißt.
Das ist mir klar. Aber es geht um eine Standleitung bzw. Wahlleitung zwischen zwei Firmen, die fuer die Einwahl nur die passenden IP-Adressen zulassen. Danke fuer deine Tips Gruss Claus
participants (4)
-
Alexander Sommer
-
Andre Heine
-
Claus Teubner
-
Juergen Schwarting