If you have multiple device requirements, using the same GPG Key
will save you a lot of unnecessary trouble.
Exporting in File Format#
Enter the following commands in the terminal:
gpg --armor --output gpg_pub.gpg --export { key ID }
gpg --armor --output gpg_sec.gpg --export-secret-key { key ID }
This way, you will get two
GPG
files in the current path, please keep these two files safe.
Importing from GPG Files#
If you have GPG
files on hand, importing is also very simple. Enter the following commands in the terminal:
gpg --import gpg_pub.gpg
gpg --allow-secret-key-import --import gpg_sec.gpg
Note: Use your own file names and paths.