-
Install
pass
utilitysudo pacman -S pass
-
Create a GPG key using the default RSA also (if not yet created)
gpg --full-gen-key
-
Use the returned GPG Key Id to init the pass storage (if you already had one you can retrieve it using
gpg --list-secret-keys
)pass init GPG_KEY_ID
-
Sync the pass storage with a remote git repository
pass git init pass git remote add origin example.com:pass pass git push
- Export your GPG key from your original machine:
gpg --export-secret-keys --armor GPG_KEY_ID > privkey.asc gpg --export --armor GPG_KEY_ID > pubkey.asc
- Import your GPG key on the new machine:
gpg --import /path/to/pubkey.asc gpg --allow-secret-key-import --import /path/to/privkey.asc
- Trust it if necessary:
gpg --edit-key GPG_KEY_ID
- Install pass utility if not already installed:
sudo pacman -S pass
- Make your repository the new pass store:
rm -rf ~/.password-store git clone user@server:repository.git ~/.password-store