From owner-freebsd-security Thu Mar 28 0:37:27 2002 Delivered-To: freebsd-security@freebsd.org Received: from mail.voljatel.si (mail.voljatel.si [217.72.64.15]) by hub.freebsd.org (Postfix) with ESMTP id B07A037B400 for ; Thu, 28 Mar 2002 00:37:23 -0800 (PST) Received: from pxna.hide.voljatel.si (pehta.voljatel.si [217.72.64.8]) by mail.voljatel.si (Postfix) with SMTP id D09B553501 for ; Thu, 28 Mar 2002 09:37:17 +0100 (CET) Date: Thu, 28 Mar 2002 09:39:57 +0100 From: Damir Horvat To: freebsd-security@freebsd.org Subject: Re: using ssh to run remote commands? Message-Id: <20020328093957.0bd6a3b0.damir@voljatel.si> In-Reply-To: <20020327152947.B443@iib.unsam.edu.ar> References: <20020327152947.B443@iib.unsam.edu.ar> Organization: Voljatel telekomunikacije d.d. X-Mailer: Sylpheed version 0.7.2 (GTK+ 1.2.10; i386-portbld-freebsd4.4) X-Operating-System: home brewed unix Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 27 Mar 2002 15:29:47 -0300 Fernan Aguero wrote: > I'd like to know how to run remote commands using ssh. This has allready been explained as I can see. But the nice thing about this whole thing is being lazy. I do all my MRTG's like this .... No need for SNMPD. example: ssh user@mailserver grep sent /var/log/maillog | wc -l ssh user@mailserver grep deferred /var/log/maillog | wc -l you feed this to MRTG and get nice graph of sent and deferred mails. Like I said, being lazy is a good thing. regards, damir -- ................................. Damir Horvat System administrator VOLJATEL telekomunikacije d.d. Smartinska 106 SI-1000 Ljubljana Slovenia . Tel. +386.(0)1.5875 832 Fax. +386.(0)1.5875 899 www.voljatel.si E-mail: damir.horvat@voljatel.si ................................. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message