Date: Thu, 13 Apr 2000 10:41:15 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: beemern@telecom.ksu.edu Cc: questions@FreeBSD.ORG, keith@telestream.com Subject: Re: scp/cron can't attach to terminal??? Message-ID: <4975.955615275@axl.ops.uunet.co.za> In-Reply-To: Your message of "Tue, 11 Apr 2000 15:53:21 EST." <38F390C1.6D14025D@telecom.ksu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Apr 2000 15:53:21 EST, beemern@telecom.ksu.edu wrote: > I'm trying to have cron run a script that calls scp. The script just > does a simple scp of a file from one machine to another. The script > keeps dying while in cron but I can run it just fine at the command > line. When you say "works fine", doesn't it prompt for a password? It looks like your scp requires user input (specifically a password), which is obviously somewhere between infeasible and ill-advised in a cron job. Surely what you want to do is append the local user's ~/.ssh/identity.pub to the remote user's ~/.ssh/authorized_keys so that no password is required for the ssh connection? Ciao, Sheldon. 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?4975.955615275>