Requirements
- a working Raspberry Pi with ssh access and git installed
- an other computer with pass, gpg and git installed
- for android:
- OpenKeyChain and Password Store,
- or Termux (pkg install pass)
Create a repository on the Pi
git init --bare
First time pass setup
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
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.