ssh-copy-id makes it easy to transfer a public key to a remote machine.
Is there any equivalent tool for moving a private key?
update
Don't do this! (see answer)
|
Good practice says that you shouldn't copy private keys from one machine to another. When you need access from a new client machine, create a new key on that machine, and set up the corresponding public key in your Doing this allows you to disable access from one client machine at a time, if you need to (suppose a laptop was stolen, for example). |
|||
|
|
ssh-copy-idto copy a public key – rymo Oct 17 '11 at 1:57