Pass: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 20: Line 20:
  gpg --gen-key
  gpg --gen-key


and import pubkey of other user:
and import pubkey(s) of other user(s):
  gpg --import hisid
  gpg --import hisid


Line 26: Line 26:
  group ourgroup yourid hisid
  group ourgroup yourid hisid
  default-key <your key id>
  default-key <your key id>
Slightly less secure but very convenient:
ssh-keygen
and then add .ssh/id_rsa.pub to .ssh/authorized_keys on server





Revision as of 16:48, 17 March 2015

Simple password manager using gpg

Links

Setting up a shared pass git repository

On server pass.example.com create user passuser Then as this user:

mkdir pass.git
git init --bare pass.git


On your workstation:

If you don't already have gpg key:

gpg --gen-key

and import pubkey(s) of other user(s):

gpg --import hisid

To make gpg use group, add to .gnupg/gpg.conf:

group ourgroup yourid hisid
default-key <your key id>

Slightly less secure but very convenient:

ssh-keygen

and then add .ssh/id_rsa.pub to .ssh/authorized_keys on server


Then init pass:

pass init ourgroup
pass git init
pass git add remote origin passuser@pass.example.com
pass git push


Now all it takes to add keys is:

pass add someserver/someaccount
pass git push


On system of hisid you run the same pass init/git instructions, and then

pass git pull

ACHTUNG any user who edits or adds keys needs the public keys of all group members!

additional commands