From owner-freebsd-questions Tue Mar 17 10:06:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA09473 for freebsd-questions-outgoing; Tue, 17 Mar 1998 10:06:11 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mph124.rh.psu.edu (mph@MPH124.rh.psu.edu [128.118.126.83]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA09313 for ; Tue, 17 Mar 1998 10:05:59 -0800 (PST) (envelope-from mph@mph124.rh.psu.edu) Received: (from mph@localhost) by mph124.rh.psu.edu (8.8.8/8.8.8) id NAA26421; Tue, 17 Mar 1998 13:05:56 -0500 (EST) (envelope-from mph) Message-ID: <19980317130555.37679@mph124.rh.psu.edu> Date: Tue, 17 Mar 1998 13:05:55 -0500 From: Matthew Hunt To: Jacques Hugo , questions@FreeBSD.ORG Subject: Re: ssh and scp References: <350E6BC8.41C67EA6@wired.ctech.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <350E6BC8.41C67EA6@wired.ctech.ac.za>; from Jacques Hugo on Tue, Mar 17, 1998 at 02:25:44PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 17, 1998 at 02:25:44PM +0200, Jacques Hugo wrote: > Can scp be automated that it can read the passwd from > a user on a trusted host? I would like to scp -r > directories during the night from one box to another. If you want a user on one machine (which I'll call "client") to be able to ssh (or scp) into another box ("server") without supplying a password, take these steps: Make sure that ~/.ssh/identity.pub exists on client. It is normally there, as long as you have used ssh before. Append the contents of that file to ~/.ssh/authorized_keys on server. If that file doesn't exist, create it with the contents of client's identity.pub. You can now ssh from client to server without supplying a password. -- Matthew Hunt * Think locally, act globally. http://mph124.rh.psu.edu/~mph/pgp.key for PGP public key 0x67203349. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message