From owner-freebsd-questions Tue Jan 18 3:12:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.prescient.co.za (mail.prescient.co.za [196.25.167.194]) by hub.freebsd.org (Postfix) with ESMTP id 0DCCA15066 for ; Tue, 18 Jan 2000 03:12:33 -0800 (PST) (envelope-from rip@pinetec.co.za) Received: from rip by mail.prescient.co.za with local (Exim 2.05 #1) id 12AWYg-00044s-00; Tue, 18 Jan 2000 13:12:22 +0200 Date: Tue, 18 Jan 2000 13:12:22 +0200 From: "R.I.Pienaar" To: mark Cc: freebsd-questions@FreeBSD.ORG Subject: Re: your mail Message-ID: <20000118131222.I7945@pinetec.co.za> References: <0001181244430A.25159@itsunix.uwc.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <0001181244430A.25159@itsunix.uwc.ac.za> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The problem comes in when I scp it asks for a password. > I am not sure how to use the cron to send a password ( not safe either if > someone gets to see the cron file ) ssh allows you to use certificates to gain access to servers, you dont need passwords. on the backup server run ssh-keygen as the user that will do the scp's, look in that user home directory for a file called .ssh/identity.pub place this file in the remote machine - under the user dir you are scp into - ~/.ssh/authorized_key make sure the ~/.ssh and the file authorized_keys are mode 700 for the directory and 600 for the file. if all goes well, you should be able to ssh/scp from the backup server to your other machines without being asked a password. see the man pages. -- R.I. Pienaar rip@pinetec.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message