> --export-secret-keys
Sorry, this is a typo, or course. And to be absolutely sure, I re-checked:
B $ gpg --import secret.key
gpg: key : public key "name (comment) " imported
gpg: key : secret key imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: secret keys
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hi,
have a look at the manpage at --export-secret-keys:
"Same as --export, but exports the secret keys instead. ..."
regards,
Erich
On Thu, 20 May 2021, sergio via Gnupg-users wrote:
I have generated a key on host A and it works fine:
A $
I have generated a key on host A and it works fine:
A $ echo test | gpg --encrypt --recipient | gpg --decrypt
gpg: encrypted with 256-bit ECDH key, ID , created
"Name (comment) "
test
I copied it to host B:
A $ gpg --armor --export > private.key
A $ scp private.key B:
B $ gpg --import