Date: Wed, 16 Jul 2003 13:18:08 +0100 From: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> To: Chuck Swiger <cswiger@mac.com> Cc: freebsd-questions@freebsd.org Subject: Re: How do I create an identity file for scp?? Message-ID: <20030716121808.GA36601@dogma.freebsd-uk.eu.org> In-Reply-To: <3F148214.2040704@mac.com> References: <20030715184920.GA32652@dogma.freebsd-uk.eu.org> <3F1455A8.8070802@mac.com> <20030715213649.GA33467@dogma.freebsd-uk.eu.org> <3F148214.2040704@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030716121808.GA36601>