From owner-freebsd-questions@FreeBSD.ORG Sat Jan 20 06:38:46 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 5C75416A401 for ; Sat, 20 Jan 2007 06:38:46 +0000 (UTC) (envelope-from don@lizardhill.com) Received: from kermit.lizardhill.com (kermit.lizardhill.com [64.69.41.217]) by mx1.freebsd.org (Postfix) with ESMTP id 4A55713C441 for ; Sat, 20 Jan 2007 06:38:46 +0000 (UTC) (envelope-from don@lizardhill.com) Received: from ip72-193-85-114.lv.lv.cox.net ([72.193.85.114] helo=mickey) by kermit.lizardhill.com with esmtp (Exim 4.62) (envelope-from ) id 1H89qp-0007UW-I3 for freebsd-questions@freebsd.org; Fri, 19 Jan 2007 22:37:20 -0800 From: "Don O'Neil" To: Date: Fri, 19 Jan 2007 22:38:44 -0800 Message-ID: <009b01c73c5d$a1d11dd0$0300020a@mickey> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: Acc8XaF0Xr6lfUIwQh2Wx7zcKJh9/g== Subject: 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 06:38:46 -0000 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. Thanks!