From owner-freebsd-questions Sun Mar 26 0:14:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ducky.nz.freebsd.org (chilled.unixathome.org [203.79.82.27]) by hub.freebsd.org (Postfix) with ESMTP id 6798B37B977 for ; Sun, 26 Mar 2000 00:14:23 -0800 (PST) (envelope-from dan@freebsddiary.org) Received: from wocker (wocker.int.nz.freebsd.org [192.168.0.99]) by ducky.nz.freebsd.org (8.9.3/8.9.3) with ESMTP id UAA35926; Sun, 26 Mar 2000 20:13:53 +1200 (NZST) Message-Id: <200003260813.UAA35926@ducky.nz.freebsd.org> From: "Dan Langille" Organization: The FreeBSD Diary To: jameso@be.elwood.net Date: Sun, 26 Mar 2000 20:13:46 +1200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: transferring files securely Reply-To: dan@freebsddiary.org Cc: freebsd-questions@freebsd.org In-reply-to: <200003260732.TAA35630@ducky.nz.freebsd.org> References: <200003260723.TAA35573@ducky.nz.freebsd.org> X-mailer: Pegasus Mail for Win32 (v3.12b) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 26 Mar 00, at 1:31, jameso@be.elwood.net wrote: > On 26 Mar, Dan Langille wrote: > > I want to securely transfer some files from one box to another on a > > regular basis. At present I have a cron job which tars up some files and > > FTPs them to another site. That's not secure enough for me. > > > > I've thought about using ssh, but I've not been able to initiate the transfer > > from a script. This sounds like the ideal solution. > > > Run ssh-keygen on the machine that has the files, then take the > ~/.ssh/identity.pub file it created and copy it into > ~/.ssh/authorized-keys on the remote machine. Then ssh will work with > out a password in that direction. After that just script scp to run > when ever you need. > > man ssh should tell you all you need to know. Geez, I'm impressed. Thanks. Got it working. I'll publish details later this week -- Dan Langille - DVL Software Limited [I'm looking for more work] http://www.dvl-software.com/ | http://www.unixathome.org/ http://www.racingsystem.com/ | http://www.freebsddiary.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message