Export & Import Private GPG Keys

1. Get key ID

[ecomaikgolf@desktop ~]$ gpg --list-secret-keys
/home/ecomaikgolf/.gnupg/pubring.kbx
------------------------------------
sec   rsa4096 2019-06-20 [SC]
      C79F01CE017F57A4FBBB4E2233DDFB0AEB9420CB

Copy the key ID C79F01CE017F57A4FBBB4E2233DDFB0AEB9420CB

2. Export it

gpg --export-secret-keys C79F01CE017F57A4FBBB4E2233DDFB0AEB9420CB > private.key

3. Import it

Move the file to the other machine

gpg --import private.key

4. Delete private.key

shred -u private.key