From owner-freebsd-questions Sat Jan 5 16: 6:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta2.srv.hcvlny.cv.net (mta2.srv.hcvlny.cv.net [167.206.5.5]) by hub.freebsd.org (Postfix) with ESMTP id 5582637B405 for ; Sat, 5 Jan 2002 16:06:10 -0800 (PST) Received: from optonline.net (ool-4351b38a.dyn.optonline.net [67.81.179.138]) by mta2.srv.hcvlny.cv.net (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GPH007K7PM6T5@mta2.srv.hcvlny.cv.net> for questions@FreeBSD.ORG; Sat, 05 Jan 2002 19:06:06 -0500 (EST) Date: Sat, 05 Jan 2002 19:06:08 -0500 From: Gerard Samuel Subject: scp job To: FreeBSD Questions Message-id: <3C3794F0.8050807@optonline.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.7) Gecko/20011228 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 Hey all. Im trying to setup a cron job involving scp. So Im trying to make a script. All the boxes are on my lan. On the recieving box, I ran ssh-keygen and copyed the identity file via scp to where the script is supposed to run. Here is the script --------------------------------------- #!/bin/sh zip -r /tmp/html_dev /files/www/data/test scp -i /root/bin/identity /tmp/html_dev.zip developer@gatekeeper: rm /tmp/html_dev.zip ---------------------------------------- When I try to run it I get this after its finished the zip portion. Permission denied. lost connection I tried using the identity.pub file also, but no dice.. How does one automate scp to get its password so the script could finish the job?? Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message