Can a private key be copied to another machine?

David Shaw
Fri Aug 16 16:23:01 2002

On Thu, Aug 15, 2002 at 12:12:15PM -0500, Larry Hanrahan wrote:
> Gnupg,
>   I have a question concerning private keys.  I currently have a private
> key on my laptop.  Can this same private key be copied to a desktop
> machine and retain the ability to decrypt when I receive an encrypted
> file or do I need to create a new private key and send the public key to
> my various users?
>   If this can be done, what is the process of copying the private key?

Machine A>   gpg --export-secret-key (mykeyid) > mykey.gpg
	(copy file over, presumably in a secure manner)
Machine B>   gpg --import mykey.gpg


   David Shaw  |  |  WWW
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson