From owner-freebsd-questions Wed Mar 17 17:19: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from procyon.meridian-enviro.com (thunder.meridian-enviro.com [207.109.234.227]) by hub.freebsd.org (Postfix) with ESMTP id 1FEE415434 for ; Wed, 17 Mar 1999 17:18:23 -0800 (PST) (envelope-from rand@meridian-enviro.com) Received: from deneb.meridian-enviro.com (deneb.meridian-enviro.com [10.10.10.32]) by procyon.meridian-enviro.com (8.9.2/8.9.2) with ESMTP id TAA24642; Wed, 17 Mar 1999 19:18:04 -0600 (CST) Received: (from rand@localhost) by deneb.meridian-enviro.com (8.9.2/8.9.2) id TAA15496; Wed, 17 Mar 1999 19:18:04 -0600 (CST) From: "Douglas K. Rand" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14064.21579.793390.238423@deneb.meridian-enviro.com> Date: Wed, 17 Mar 1999 19:18:03 -0600 (CST) To: keith@apcs.com.au Cc: questions@FreeBSD.ORG Subject: Re: scp ssh ? In-Reply-To: References: X-Mailer: VM 6.47 under 20.4 "Emerald" XEmacs Lucid X-Face: $L%T~#'9fAQ])o]A][d7EH`V;"_;2K;TEPQB=v]rDf_2s% I have a local network and I wish to transfer secure data every Keith> hour using cron. Keith> Problem is 'scp' required a password to contine. Keith> I'm trying to use: Keith> /usr/local/bin/scp -C /home/fred/file root@fred.localhost:/home/fred/file Keith> I have a file in /root/.shosts: hostname.localhost root They way we do this is with RSA keys that don't have a passphrase. But I'd be *very* wary of allowing root access with out any passwords or passprhases. If possible, I'd suggest creating a seperate user just for file transfers like this, use ssh-keygen to give that user a key, and on the host fred put the public part of the key in ~/.ssh/authorized_keys. Check out the man pages on ssh and ssh-keygen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message