Re: fail to export gpg private key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jul 6, 2016 at 2:36 PM, Jens Adam <jra@xxxxxxx> wrote:
>
>> $ gpg --output tth_sec.gpg --armor --export-secret-key KeyID
>> gpg: WARNING: nothing exported
>>
>> I have the tth_sec.pgp but with size of zero.
>>
>> What do I wrong?
>
> Are you doing this via ssh? In that case gpg-agent/pinentry often cause problems.
> Try again with:
>
>  $ GPG_TTY=$(tty) gpg --output tth_sec.gpg --armor --export-secret-key KeyID

NO ssh.

I just found the reason when running $ gpg --list-secret-keys. The
command returned empty! Permission was set to 600 for items inside the
gnupg folder. Setting permission to 700 for sub directories fixed it.

$ ls
......
-rw------- 1 poisonivy poisonivy 1.7K Jul  6 13:34 tth_pub.gpg
-rw------- 1 poisonivy poisonivy 3.6K Jul  6 14:46 tth_sec.gpg


>
>
> —byte



-- 

google.com/+arnaudgabourygabx




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux