> $ 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 —byte