From owner-freebsd-questions Thu Feb 21 15:50:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from su.ualberta.ca (mail.su.ualberta.ca [129.128.133.14]) by hub.freebsd.org (Postfix) with ESMTP id 77C5A37B400 for ; Thu, 21 Feb 2002 15:50:19 -0800 (PST) Received: from [129.128.133.6] (HELO [10.0.1.44]) by su.ualberta.ca (CommuniGate Pro SMTP 3.5.6) with ESMTP-TLS id 46020523 for freebsd-questions@freebsd.org; Thu, 21 Feb 2002 16:50:18 -0700 User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Thu, 21 Feb 2002 16:50:17 -0700 Subject: Scp From: Colin Harford To: Message-ID: Mime-version: 1.0 X-address: Suite 2-900, SUB, University of Alberta, 8900-114 St, Edmonton: Alberta, T6G 2J7 X-disclaimer: Opinions expressed herein are solely the responsibility Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable 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 I am writing up a shell script that is to be executed via cron. Part of the script involves using scp, and I want it to copy a file to a remote server. Currently I use syntax scp localfile user@remote:/location-to-save-to/remotefile The problem is I want to have it authenticate by itself without needing my input. Any ideas how, and the syntax I would use. (the man page is rather ambigious) Colin Harford =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Systems and Network Administrator =A0=A0=A0=A0 Apple Product Professional =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =A0=A0=A0=A0 Computer and Network Support =A0=A0=A0=A0=A0=A0=A0=A0 University of Alberta Students' Union =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Phone: (780) 492-4241 =A0=A0Fax: =A0(780) 492-4643 http://www.su.ualberta.ca "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message