- List the keys you have:
gpg --list-secret-keys - Export the key:
gpg --export-secret-key name >o ~/my-key.asc --export-secret-key name - Copy it on another machine;
- Import the key:
gpg --import my-key.asc
Use `-o` to prevent console issues finding there way into the output file