Re: "gpg: decryption failed: No secret key" after export-import to another host

2021-05-20 Thread sergio via Gnupg-users
> --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

Re: "gpg: decryption failed: No secret key" after export-import to another host

2021-05-20 Thread Erich Eckner via Gnupg-users
-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 $

"gpg: decryption failed: No secret key" after export-import to another host

2021-05-20 Thread sergio via Gnupg-users
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