copy GNUPG keys for user from one box to another

Steve Butler sbutler at
Fri Feb 6 07:32:22 CET 2004

Thank you for expanding on the --export variants.  Perhaps I should use
--export* to represent all the varies incarnations.

Thankfully,        --allow-secret-key-import
                 This  is an obsolete option and is not used any-
But there were times in past years when I had to go "oh yes -- how was that

Folks really should "read" the man pages (or help file in Windows) for the
various methods to export and import keys.

-----Original Message-----
From: gabriel rosenkoetter [mailto:gr at]
On Thu, Feb 05, 2004 at 10:07:04PM +0100, Johan Wevers wrote:
> Why so complicated? Why not just copy or ftp/scp the entire keyrings?

Because, especially if you're moving secret keys about, you may get
the permissions wrong. --import won't.

Because I've used similar procedures, just earlier today (though
with commercial PGP) to move a shared keypair from one user account
to another. Copying .pgp there isn't an option without a bunch of
manual editing (the config files include full paths to keyrings),
but exporting as one user and importing as the other Just Works.

Because keys aren't files, they're objects that can be represented
in several different ways singly and in sets in files.

And the other reasons already mentioned.

But mostly I was just expanding on the stated --export | --import
syntax, so that someone taking that advice blindly wouldn't be
confused by the subsequent lack of secret keys.

gabriel rosenkoetter
gr at

CONFIDENTIALITY NOTICE:  This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

More information about the Gnupg-users mailing list