Skip to content

Latest commit

 

History

History
157 lines (105 loc) · 2.35 KB

gopass-cheat-sheet.md

File metadata and controls

157 lines (105 loc) · 2.35 KB

GOPASS CHEAT SHEET

Secure passwords with gopass. It creates a folder tree, where encrypted files are the leaves.

gopass
├── my-company
│   └── [email protected]
└── personal
    └── [email protected]

GPG Keys

List secret keys

gpg -K

Create new key (required)

gpg --full-generate-key

Initialize gopass

Autocomplete

echo "source <(gopass completion bash)" >> ~/.bashrc

Initialize new password store (required)

gopass init

Note: backup your private key in an encrypted disk.

Using gopass

List passwords

gopass ls

Creating passwords

Default store location ~/.password-store/

gopass insert my-company/[email protected]

Generate random pass

gopass generate my-company/[email protected]

Search secrets

gopass search @email.com

Show password in console

gopass show my-company/[email protected]

Copy password to clipboard

gopass show -c my-company/[email protected]

Using stores

Stores (AKA mounts) let you group your passwords. Example: personal, company. Each one can live in a different repository, and you could share company with your peers.

Initialize new store

Creates a new store located at ~/.password-store-my-company.

gopass init --store my-company

Add git remote to store

gopass git remote add --store my-company origin [email protected]/Woile/keys.git

Clone existing store

gopass clone [email protected]/Woile/keys.git my-company --sync gitcli

Synchronization

Synchronize with remotes

gopass sync

Synchronzing a single store

gopass sync --store my-company

Team sharing

Export public key

gpg -a --export [email protected] > willy.pub.asc

Check current recipients

gopass recipients

Add public key into gopass

gpg --import < willy.pub.asc
gpg --list-keys
gopass recipients add [email protected]
[source][source] | [presentation][presentation] | [santiwilly][santiwilly]