Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Setting up Password Store to sync with a local computer

Fabian Henneke edited this page Sep 24, 2020 · 8 revisions

Git is flexible in the way that all installations are both clients as well as servers and thus we can simply clone repositories present on a local network or filesystem as we from a remote server like a Git hosting service. To setup a local PC so that it can be accessed by Password Store, you'll need the following things installed, available from any of the many package managers across different operating systems and Linux flavors.

  • OpenSSH
  • Git
  • GnuPG

Steps

Generate a gpg key

gpg2 --full-gen-key

Install pass

Download it from this website

Initialize pass

pass init <email used for the GPG key in the previous step>

Setup git

Setup both pass as well as a git repository that will be used by Password Store.

sudo apt-get install openssh-client openssh-server
git init --bare ~/pass-repo
pass git init
pass git remote add origin ssh://oren@localhost:/home/oren/pass-repo
pass git push origin master

Set the server config in Password Store

Select Clone remote repo on the setup screen, then enter the remote repository URL in one of the following forms:

  • https://[email protected]/android-password-store/pass-test (to connect anonymously via HTTPS)

  • https://[email protected]/android-password-store/pass-test (to connect with username & password via HTTPS)

  • [email protected]:android-password-store/pass-test (to connect via SSH on the standard port 22; username is usually git with GitHub, Gitlab and the likes)

  • ssh://[email protected]:12345/android-password-store/pass-test (to connect via SSH on the custom port 12345; uses absolute paths instead of relative paths to locate the repository on the server)

If you want to use an SSH public key to authenticate to the server, select either SSH key to keep one within Password Store or OpenKeychain to use an existing authentication subkey in OpenKeychain. Otherwise, keep the default selection of Password.

Generate and authorize an SSH key in Password Store

Follow the steps over at Generate SSH key.

Clone

Tap Clone on the server config page. You will either be asked to provide your password or to generate an SSH key. Afterwards, you should be greeted by your list of passwords.