From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 05:18:11 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8832D37B401 for ; Wed, 16 Jul 2003 05:18:11 -0700 (PDT) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C10C43F93 for ; Wed, 16 Jul 2003 05:18:10 -0700 (PDT) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 4.20) id 19clEX-0003Yf-C3; Wed, 16 Jul 2003 13:18:09 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) h6GCI8Cl036651; Wed, 16 Jul 2003 13:18:09 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.6/8.12.6/Submit) id h6GCI8Wm036650; Wed, 16 Jul 2003 13:18:08 +0100 (BST) Date: Wed, 16 Jul 2003 13:18:08 +0100 From: Jonathon McKitrick To: Chuck Swiger Message-ID: <20030716121808.GA36601@dogma.freebsd-uk.eu.org> References: <20030715184920.GA32652@dogma.freebsd-uk.eu.org> <3F1455A8.8070802@mac.com> <20030715213649.GA33467@dogma.freebsd-uk.eu.org> <3F148214.2040704@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F148214.2040704@mac.com> User-Agent: Mutt/1.4i X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *19clEX-0003Yf-C3*XewA02edI2A* cc: freebsd-questions@freebsd.org Subject: Re: How do I create an identity file for scp?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 12:18:11 -0000 On Tue, Jul 15, 2003 at 06:37:08PM -0400, Chuck Swiger wrote: : Jonathon McKitrick wrote: : >On Tue, Jul 15, 2003 at 03:27:36PM -0400, Chuck Swiger wrote: : [ ... ] : >: Use ssh-keygen to generate an RSA or DSA keypair without using a : >password, : and copy identity.pub, id_dsa.pub, or whatever to : >.ssh/authorized_keys on : the remote host (the system being logged into). : > : >That worked perfectly. Thanks! : : You're welcome. : : >Am I correct that for each box I want to log in from, I do the same thing, : >and just append each key to authorized_keys? : : Sure, you can generate as many keys as you need, but it's only useful to : generate keys for distinct user identities or roles. You can copy the : private key (the file without the ".pub") to each machine that you want to : be able to login unattended from. And I just discovered it automatically picks up the key for ssh logins as well. I'm surprised I didn't have to give it a command line option. jm -- My other computer is your Windows box.