From owner-freebsd-questions Sat Mar 25 23:31:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.WorldMediaCo.com (mail.pro-privacy.com [63.64.101.17]) by hub.freebsd.org (Postfix) with ESMTP id 6CDD837B9BA for ; Sat, 25 Mar 2000 23:31:23 -0800 (PST) (envelope-from jameso@cx676171-b.omhan1.ne.home.com) Received: from cx676171-b.omhan1.ne.home.com.cx676171-b.omhan1.ne.home.com ([24.7.33.47]) by mail1.WorldMediaCo.com (Post.Office MTA v3.5.3 release 223 ID# 0-55573U2500L250S0V35) with SMTP id com; Sun, 26 Mar 2000 00:57:31 -0600 Date: Sun, 26 Mar 2000 01:31:11 -0600 (CST) From: jameso@elwood.net Reply-To: jameso@elwood.net Subject: Re: transferring files securely To: dan@freebsddiary.org Cc: freebsd-questions@freebsd.org In-Reply-To: <200003260723.TAA35573@ducky.nz.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20000326073123.6CDD837B9BA@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message