Password management with pass and a Raspberry Pi

Created at 2022-08-28 10:43
Last edited at 2025-04-21 12:18

Requirements

Create a repository on the Pi

git init --bare

First time pass setup

Generate a gpg key

Initialize pass:

pass init '<keyid>'
pass git init
pass git remote add password-store user@ip_addr_of_pi:/path/to/the/repo

Push to the Pi:

pass git push -u --all

Set up pass on a new machince with an already existing repo on the Pi

For easy configuration of gnupg, copy the gnupg directory to the Pi:

scp -rp ~/path/to/gnupg user@ip_addr_of_pi:.gnupg

then it can be pulled to the new machine:

scp -rp user@ip_addr_of_pi:.gnupg ~/path/to/gnupg

clone the pass repository:

git clone user@ip_addr_of_pi:/path/to/passwordstore ~/path/to/passwordstore

Set up Password Store for Android

Export your private key

App settings:

Copy the exported key onto the Android device and import it to OpenKeyChain. In the Password Store app provide the url of the repository on the Pi (e.g. user@ip_addr_of_pi:/path/to/the/repo) and clone with ssh.