SSH key question
Karl Auer
kauer at biplane.com.au
Thu Dec 10 22:18:08 UTC 2020
On Thu, 2020-12-10 at 18:29 +0000, David Fletcher wrote:
> AIUI, you only ever run the genkey once. Doesn't matter which
> machine.
You need to run ssh-genkey once for each key that you want to use.
Typically once on each machine from which you will be originating
outbound connections.
Sometimes you want a separate keys for various purposes so you run it
multiple times on the same machine, but (hopefully obviously)
specifying different file names.
> You need to be able to edit ~/.ssh/authorized_keys on a remote
> machine and add your public key to that file.
That's what ssh-copy-id does (more or less), especially if used with
the -i option to specify a single identity.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D
More information about the ubuntu-users
mailing list