- List the keys you have:
`gpg --list-secret-keys`
- Export the key:
`gpg --export-secret-key name > ~/my-key.asc`
- Copy it on another machine;
- Import the key:
`gpg --import my-key.asc`