Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 22:14:16 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        Colin Harford <colin.harford@mail.su.ualberta.ca>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Scp
Message-ID:  <20020221220907.R11078-100000@cactus.fi.uba.ar>
In-Reply-To: <B89AD5C9.4F0E%colin.harford@mail.su.ualberta.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020221220907.R11078-100000>