This is not a question on manjaro (or even linux) specifically, but rather about a specific software, namely gpg
. I hope it is OK to ask here anyway, and that I chose the right subforum.
I would like to use the password manager pass
(pass - ArchWiki), because I like its idea of using standards like gpg
and git
. Basically it is just a frontend to gpg
, so it stores passwords in gpg
-encrypted files. In other words, adding a new password is the same as adding a new gpg-encrypted file and reading a password from the database is decrypting the respective file.
I haven’t used gpg
before and have some basic questions on how it works. So according to GnuPG - ArchWiki I first created a key with gpg --full-gen-key
. Now I have a new directory ~/.gnupg
with a number of files in it. From several places I have read, that I have a private key, a public key, but also (?) subkeys for de-/encryption and maybe more.
My question is, what precisely I need when I want to share my password database across several devices, say my Laptop A, my Laptop B with OS 1 and and OS 2 and my Android phone. Would I just copy my ~/.gnupg
folder over to all the other devices? Would I just copy specific files? Or would I create another keypair on each and every of my devices and configure them so that my passwords can be decrypted by each of these keys? Or do I only have to copy my password database and remember the gpg password?
I hope someone can answer these basic questions. I know there is lots of documentation on gpg, but such a use case is seldomly covered.