Date: Sat, 07 Feb 2004 13:57:00 +0100 From: "Erik @ MicroController.nl" <erik@microcontroller.nl> To: Andreas Klemm <andreas@freebsd.org> Cc: freebsd-isp@freebsd.org Subject: Re: fbsd mgmt server, telnet through ssh tunnel to Cisco possible ? Message-ID: <1076158620.5859.43.camel@ina.mysmt.net> 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
see ssh key's and the man page of ssh-keygen -Erik. On Sat, 2004-02-07 at 13:45, Andreas Klemm wrote: > Hi, > > I have a FreeBSD 5.2.1 monitoring system up and running. > It uses shellscripts with netcat to login to the ciscos > get some data out of it, writes results to files etc ... > For these mechanism to work I need to be able to telnet to the > ciscos. > > 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 ? > And without the Cisco prompting for a password ? > > Is there something other available than netcat to make > batched data collection scripts to ciscos possible on a > ssh basis ??? > > Any recommendations that could work ? > > 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 /// -- -Erik. -- homepage: http://erik.mysmt.net Merelstraat 35bis (blackbirdstreet 35B) 3514 CM UTRECHT/Utrecht The Netherlands
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1076158620.5859.43.camel>