Note: Moving/copying PGP keys

List existing keys to find key ID

bbj@bbj.io:~$ gpg --list-keys
/home/bbj/.gnupg/pubring.gpg
pub rsa4096 2014-03-06 [SC]
1EE9C2829B27AD4CC0BB3201EFC8F593CE2E378F
uid [ultimate] Bård Bjerke Johannessen bbj@bbj.io
uid [ultimate] Bård Bjerke Johannessen bj@syse.no
sub rsa4096 2014-03-06 [E]

Export public and private key for selected key ID

bbj@bbj.io:~$ gpg --output public.gpg --armor --export 1EE9C2829B27AD4CC0BB3201EFC8F593CE2E378F
bbj@bbj.io:~$ gpg --output private.gpg --armor --export-secret-key 1EE9C2829B27AD4CC0BB3201EFC8F593CE2E378F

copy keys to another host

bbj@bbj.io:~$ scp public.gpg private.gpg bbj@bbj.syse.no

Import public key

bbj@bbj.syse.no:~$ gpg --import public.gpg 
gpg: directory '/home/bbj/.gnupg' created
gpg: keybox '/home/bbj/.gnupg/pubring.kbx' created
gpg: /home/bbj/.gnupg/trustdb.gpg: trustdb created
gpg: key EFC8F593CE2E378F: public key "Bård Bjerke Johannessen bbj@bbj.io" imported
gpg: Total number processed: 1
gpg: imported: 1

Import private key

bbj@bbj.syse.no:~$ gpg --import private.gpg 
gpg: key EFC8F593CE2E378F: "Bård Bjerke Johannessen bbj@bbj.io" not changed
gpg: key EFC8F593CE2E378F: secret key imported
gpg: Total number processed: 1
gpg: unchanged: 1
gpg: secret keys read: 1
gpg: secret keys imported: 1

Set trust

gpg --edit-key 1EE9C2829B27AD4CC0BB3201EFC8F593CE2E378