From owner-freebsd-isp@FreeBSD.ORG Sat Feb 7 04:56:58 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0106216A4D0 for ; Sat, 7 Feb 2004 04:56:58 -0800 (PST) Received: from anna.mysmt.net (ns1.mysmt.net [217.8.108.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E06843D1F for ; Sat, 7 Feb 2004 04:56:57 -0800 (PST) (envelope-from erik@microcontroller.nl) Received: (qmail 18939 invoked by uid 89); 7 Feb 2004 12:56:55 -0000 Received: from unknown (HELO ?10.0.0.6?) (microcon@microcontroller.nl@212.238.210.243) by ns1.mysmt.net with SMTP; 7 Feb 2004 12:56:55 -0000 From: "Erik @ MicroController.nl" To: Andreas Klemm In-Reply-To: <20040207124507.GA20305@titan.klemm.apsfilter.org> References: <20040207124507.GA20305@titan.klemm.apsfilter.org> Content-Type: text/plain Message-Id: <1076158620.5859.43.camel@ina.mysmt.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Sat, 07 Feb 2004 13:57:00 +0100 Content-Transfer-Encoding: 7bit cc: freebsd-isp@freebsd.org Subject: Re: fbsd mgmt server, telnet through ssh tunnel to Cisco possible ? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 12:56:58 -0000 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 < 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