How do I create an identity file for scp??

Jonathon McKitrick jcm at FreeBSD-uk.eu.org
Wed Jul 16 05:18:11 PDT 2003


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.


More information about the freebsd-questions mailing list