From owner-freebsd-questions Wed May 9 14:58:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id DCB6237B622 for ; Wed, 9 May 2001 14:58:29 -0700 (PDT) (envelope-from lucas@slb.to) Received: (qmail 14239 invoked by uid 1000); 9 May 2001 21:58:47 -0000 Date: Wed, 9 May 2001 16:58:46 -0500 From: Lucas Bergman To: Blake Swensen Cc: freebsd-questions@freebsd.org Subject: Re: automating dump | ssh Message-ID: <20010509165846.A20811@billygoat.slb.to> Reply-To: lucas@slb.to References: <3AF84756.109E378@pyramus.com> <20010508142937.B25810@billygoat.slb.to> <3AF9B49E.88DB0B84@pyramus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AF9B49E.88DB0B84@pyramus.com>; from blake@pyramus.com on Wed, May 09, 2001 at 02:20:31PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Anyone know how to supply the password to ssh in order to > > > automate x-network dump? > > > > > > Like dump -0af - /filesystem | ssh -f another-machine "cat > > > > /path/to/dump/file" < password_file > > > > > > which doesn't work, btw, but you get the idea. > > > > Set up ssh so you don't need a password: > > > > man ssh-keygen man ssh > > That's the same thing that I thought. After generating the keys, > placing them in the appropriate directories on both systems, and > setting the appropriate flags in ssh2_config... > > The manual says (please note the big "not yet implemented" notes!): > PasswordAuthentication > [ blah, blah, blah ... ] > > RHostsAuthentication > [ blah, blah, blah ... ] I meant that you should use public key crypto authentication, not rhosts authentication. If you generate a key pair with ssh-keygen{,2}, then put the public key in the ~/.ssh/authorized_keys{,2} file on the machine to which you're making a connection, no messing with config files should be necessary. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message