I moved to the pass password manager and I'm trying to integrate it as well as possible into my workflow. However, I'm not familiar with deeper synchronization/version-control concepts (git, password server), so I'm stuck syncing the passwords between multiple computers.

I'm using Linux (Debian 9) and the synchronization is done over the local network with Unison -- usually I'm indicating which directories should be the same and every time, before I switch, I'm syncing between the machines. Is there a possibility to sync the password-store directories – and how, considering the keys are required to use pass.

Alternatively is there a good -- easy to understand and complete -- tutorial for using the git-/server-solution? (The official manual, article1, article2, article3 I found are incomplete for normal users.)

  • Recently I made this, you may find it useful. With it you just need to sync one file. It has the added benefit that password entry identifiers (path names) are not leaked as the whole thing is in a single encrypted json file, less typing (smart tag-based searching), more generic as it allows you to choose your own encryption tool (not locked to gpg), defaults to ciphart instead of gpg, which uses xchacha20 from libsodium (more modern and cleaner than gpg). All while number of lines is approximately about that of pass. – caveman Dec 25 '20 at 16:22

I've followed the step by step instructions of Mathew Robinson here and it works like a charm.

The linked article recommends making a git repository for the password store and using

pass git push origin master

to sync. Then use

gpg2 --export-secret-keys > [name].gpg

to put your gpg key in a file, which you should move to the new machine. Then on the new machine you can

gpg2 --import [name].gpg

and pass commands work normally.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.