From owner-freebsd-questions@FreeBSD.ORG Sat Jan 20 16:05:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99E8C16A400 for ; Sat, 20 Jan 2007 16:05:31 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 74D7313C46A for ; Sat, 20 Jan 2007 16:05:31 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 377A051946 for ; Sat, 20 Jan 2007 11:05:28 -0500 (EST) Date: Sat, 20 Jan 2007 16:05:22 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070120160522.2a429cec@gumby.homeunix.com> In-Reply-To: <009b01c73c5d$a1d11dd0$0300020a@mickey> References: <009b01c73c5d$a1d11dd0$0300020a@mickey> X-Mailer: Claws Mail 2.7.0 (GTK+ 2.10.7; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Password on command line with SCP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 16:05:31 -0000 On Fri, 19 Jan 2007 22:38:44 -0800 "Don O'Neil" wrote: > > Is there any way to pass the password for an SCP command via the > command line as a switch? I'd like to embed SCP in a script and pass > the password once through a command line input from the master > script... By defauly any time I use the -B mode it says passwords are > required, and without -B it asks for the password after the command > starts to execute. Can you not just use: :@ in place of the hostname?