From owner-freebsd-questions Fri Oct 19 15:36:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 1CA7037B403 for ; Fri, 19 Oct 2001 15:36:43 -0700 (PDT) Received: from hades.hell.gr (patr530-a161.otenet.gr [212.205.215.161]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f9JMadO16837; Sat, 20 Oct 2001 01:36:39 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f9JIFq522079; Fri, 19 Oct 2001 21:15:52 +0300 (EEST) (envelope-from charon@labs.gr) Date: Fri, 19 Oct 2001 21:15:51 +0300 From: Giorgos Keramidas To: Chris Aitken Cc: freebsd-questions@freebsd.org Subject: Re: Executing scripts remotely Message-ID: <20011019211551.A21990@hades.hell.gr> References: <20011019001615.7fc417d2.matthew@starbreaker.net> <5.1.0.14.2.20011019152558.02fb8890@mail.ideal.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20011019152558.02fb8890@mail.ideal.net.au> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chris Aitken wrote: > Hi, > > Does anyone have any suggestions and information about the following > task ? > > I have 2 FreeBSD boxes on a network. I have some funky little > scripts ive been working on on one box, and I want to be able to > execute them with some arguments on the other box. > > Is there any applications or systems I can implement between the > boxen to be able to safely and securely do this? That can be done with SSH and FreeBSD come with OpenSSH already :) If you set up your machines in such a way that `user' from machine `src' can login as `user2' of machine `dest', without giving a password (this requires RSA key setup), you can always do from machine `src': src:user> ssh -l user2 dest '/path/to/some/command arg1 arg2' and have /path/to/some/command execute on machine `dest' as the user `user2', with arg1 and arg2 being it's command-line arguments. -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message