From owner-freebsd-questions Thu Feb 21 17:15:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 9E6BE37B416 for ; Thu, 21 Feb 2002 17:15:22 -0800 (PST) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id g1M1EGO90847; Thu, 21 Feb 2002 22:14:16 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Thu, 21 Feb 2002 22:14:16 -0300 (ART) From: Fernando Gleiser To: Colin Harford Cc: Subject: Re: Scp In-Reply-To: Message-ID: <20020221220907.R11078-100000@cactus.fi.uba.ar> MIME-Version: 1.0 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 On Thu, 21 Feb 2002, Colin Harford wrote: > 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 m= y > input. Generate a public/private key pair and use public key crypto do autenticate= =2E man ssh-keygen for the details. If you don't protect the private key with a passphrase the ssh client will log in without you entering any input. Note this is bad from a security standpoint. =09=09=09=09Fer > > 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 Professio= nal > =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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message