Moving your PGP keys to other machines
Use case:
I have a laptop with my keys created by gpg, but for emailing my main machine now is a desktop running Thunderbird. Thunderbird nowadays supports PGP encryption natively! However, I still need to safely get my private key to this other machine.
First we need to find our key id:
gpg --list-keys edwinwenink@hotmail.com
We want to export our private key so we can decrypt messages encrypted with our public key on the other machine.
gpg --export-secret-keys YOUR_ID > privatekey.asc
Obviously, do not leave this round and about.
I'm transferring my key on a thumb drive.
You could also use scp.