From owner-freebsd-questions Thu Apr 13 1:44: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id D6CF137BD03 for ; Thu, 13 Apr 2000 01:43:59 -0700 (PDT) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.13 #1) id 12ffBb-0001IG-00; Thu, 13 Apr 2000 10:41:15 +0200 From: Sheldon Hearn To: beemern@telecom.ksu.edu Cc: questions@FreeBSD.ORG, keith@telestream.com Subject: Re: scp/cron can't attach to terminal??? In-reply-to: Your message of "Tue, 11 Apr 2000 15:53:21 EST." <38F390C1.6D14025D@telecom.ksu.edu> Date: Thu, 13 Apr 2000 10:41:15 +0200 Message-ID: <4975.955615275@axl.ops.uunet.co.za> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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