I'm trying to import my PGP identity including secret keys to a new computer by connecting to a computer which has the secret key, and running
ssh othercomputer cat myself.gpg | gpg2 --import
When doing this, it looks like GPG is importing the public keys, but not the private ones. When examining the output closer, I can see that it says "error sending to agent: operation cancelled" which I assume has something to do with the problem.
I have
- tried specifying a
pinentry-program
ingpg-agent.conf
; - restarted
gpg-agent
and triple-checked it is running; and - verified that the versions of gpg-agent and gpg match.