-
-
Notifications
You must be signed in to change notification settings - Fork 270
Setting up Password Store to sync with a local computer
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
gpg2 --full-gen-key
Download it from this website
pass init <email used for the GPG key in the previous step>
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
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 usuallygit
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
.
Follow the steps over at Generate SSH key.
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.