You are not logged in.

#1 2026-04-28 21:33:17

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 106

[SOLVED] Sharing pass git repo

Hi there,
I have set up a pass store on my local workstation that syncs the password store with a remote server via pass git over SSH. I have followed the instructions in the wiki which works just fine.

Now I want to replicate the same pass store on another machine, say a laptop that I am taking on a trip.

I ran "pass init" and copied my local SSH key to the remote server but I am unsure about how I could sync the remote pass store to my laptop. Doing a "pass git init" and then a "pass git remote add" followed by "pass git pull" results in conflicts, probably because the repo initialization generated a different GPG key. "pass git clone" clones my pass store but I can't access the secrets ("no secret key").

What is the correct procedure to sync my additional client?
Thanks.

Last edited by gattu_marrudu (2026-04-28 23:44:25)

Offline

#2 2026-04-28 21:47:39

topcat01
Member
Registered: 2019-09-17
Posts: 285

Re: [SOLVED] Sharing pass git repo

If I understand correctly, you want to check out out existing "password-store" repository from the ssh-based server on to a new client, correct? In that case, simply

git clone git@server:repo.git

from your home and name the top level directory ".password-store". That's it. From this point on the "pass" tool will be able to sync it. I'm using the same setup myself. Regarding your secret key being missing, you can copy the ".gnupg" directory to the new machine as well, as gpg will look for the key which was used to encrypt the repo.

Last edited by topcat01 (2026-04-28 21:50:43)

Offline

#3 2026-04-28 23:43:25

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 106

Re: [SOLVED] Sharing pass git repo

That works, thank you!

I think I overlooked a message on my new client that said, 'specified keyrings are ignored due to option "use-keyboxd"', which probably added to .gnupg/common.conf when I first created my keyring. After renaming the common.conf file I was able to authenticate and see the secrets.

Offline

Board footer

Powered by FluxBB