Date: Sat, 7 Feb 2004 15:07:23 +0100 From: Christoph Sold <cs@cheasy.de> To: Andreas Klemm <andreas@freebsd.org>, freebsd-isp@freebsd.org Subject: Re: fbsd mgmt server, telnet through ssh tunnel to Cisco possible ? Message-ID: <200402071507.27156.cs@cheasy.de> In-Reply-To: <20040207124507.GA20305@titan.klemm.apsfilter.org> References: <20040207124507.GA20305@titan.klemm.apsfilter.org>
next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Andreas, ich schreib mal auf Deutsch und lass die Liste weg. On Saturday 07 February 2004 13:45, Andreas Klemm wrote: > Hi, > > I have a FreeBSD 5.2.1 monitoring system up and running. > [snip] > > Unluckily I have now a bunch of Ciscos, where only ssh login > is possible and where no rsh server functionality is allowed. > > Is it somehow possible to telnet to the ciscos via a ssh tunnel ? Nein. > And without the Cisco prompting for a password ? Ja. > Is there something other available than netcat to make > batched data collection scripts to ciscos possible on a > ssh basis ??? Ja. > Any recommendations that could work ? ssh-keygen f=FCr den User, der sich auf der Cisco einloggen soll. Den=20 Public Key auf die Cisco{,s} schieben -- als authorized_key. Ab sofort sollte f=FCr diesen User Login ohne Passwort per ssh m=F6glich=20 sein. danach den script nach folgendem Muster ab=E4ndern: for cisco in $* do ssh [user@]$cisco <command> < [localinput] > [localoutput] done d.h. man kann jeden Befehl einzeln per ssh auf die Cisco schicken, dabei=20 wird In- und Output auf die eigene Maschine umgeleitet. > Currently I use something like this > > for cisco in $* > do > nc [options] $cisco > /some/path/sh-run/$cisco-confg <<!EOS > password > ena > password > sh runn > quit > !EOS > done > > How can I get this via ssh ??? > > And best without having to enter a password, so that it can > be executed via cron on a regulary basis .... ?! > > Andreas /// HTH =2D -Christoph Sold =2D --=20 Christoph Sold, D=F6rrhorst-Str. 23, D-67059 Ludwigshafen (Rhein) cheasy@web.de, Phone: +49-621-5723206, Handy: +49-174-5862882 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAJPEcjGVuYEZ1RPYRArVjAJ9r74CIKS2KpdgRqjulZGlpb5AgmwCgtIJk +4gaoISTNCHrLeT7YuDtf3o=3D =3DR3RQ =2D----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402071507.27156.cs>