From owner-freebsd-security Wed Mar 27 10:29:58 2002 Delivered-To: freebsd-security@freebsd.org Received: from www.unsam.edu.ar (ns2.unsam.edu.ar [170.210.48.2]) by hub.freebsd.org (Postfix) with ESMTP id 0AD8837B416 for ; Wed, 27 Mar 2002 10:29:52 -0800 (PST) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by www.unsam.edu.ar (8.9.3/8.9.3) with ESMTP id PAA78543 for ; Wed, 27 Mar 2002 15:29:49 -0300 (ART) (envelope-from fernan@pi.iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.11.3/8.11.3) id g2RITlJ02297 for freebsd-security@freebsd.org; Wed, 27 Mar 2002 15:29:47 -0300 (ART) (envelope-from fernan) Date: Wed, 27 Mar 2002 15:29:47 -0300 From: Fernan Aguero To: FreeBSD Security Subject: using ssh to run remote commands? Message-ID: <20020327152947.B443@iib.unsam.edu.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Key: http://genoma.unsam.edu.ar/~fernan/pubkey.asc 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 I'd like to know how to run remote commands using ssh. I know I can do it as myself, but I'd like to know how can I set up my systems to allow non-login users (root, operator, amanda) to run remote commands on other hosts. Specifically, I want to now how can i run restore on the backup server (the one holding the tape drive) to recover full filesystems to a remote host. Obviously this should be done as either root or some other privileged user. All examples point to rsh, and I'd like to know if this can be done securely using ssh. Thanks in advance for any comments or pointers, Fernan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message