Import and Export GPG key pair (Linux)

Import and Export GPG key pair (Linux)

PROBLEM: Need to keep keys to be able restore backups later.
SOLUTION: Simple export keys and save where you want to.

1.0 – Export

Use gpg –list-keys to show all keys

My only key is myFavKey, so I will export this one using

And there you go! Yyou should both files export to same safe place 🙂

2.0 – Import

Copy both files to server where you would like to restore files and import both keys.

And it is done! You should erase both files with keys, just for safety purposes!

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments