This document explains how to use the Unix tool pass
to manage passwords.
- Install software
- Install pass: https://www.passwordstore.org/#download
- Install gpg
- Ubuntu:
$ sudo apt-get install gnupg2
- Ubuntu:
- Generate a GPG key
$ gpg -v --quick-generate-key EMAIL-ADDRESS
- Set up
pass
store
$ pass init EMAIL-ADDRESS
$ pass git init
$ pass generate Category/Site/User
$ pass insert -m Category/Site/User
- This creates a multi-line password. It is suggested to make the first line the password, and any additional lines can contain metadata.
- If this is to be used with automation, it is recommended you encode the password as a JSON blob.
$ pass ls
$ pass show Category/Site/User
$ pass show --clip Category/Site/User
- Using SSH with X11 forwarding, along with a rootless X11 server on your local machine, allows you to transfer the password into your OS's clipboard.
$ pass edit Category/Site/User
$ pass rm Category/Site/User
$ pass git log
- The above assumes an Ubuntu Linux system, so some things may be done for you automatically, like running a gpg supervisor in your current session the first time you unlock your gpg key.