Initialize Pass with a GPG ID:
pass init <gpg-id>
This command initializes the password store with the specified GPG ID for encryption.
A comprehensive cheat sheet for Pass, the standard Unix password manager. Covers essential commands for password generation, storage, retrieval, and synchronization with Git.
|
Initialize Pass with a GPG ID:
This command initializes the password store with the specified GPG ID for encryption. |
|
Initialize Git for Password Store:
This command initializes a Git repository within the password store for version control. |
|
Add Remote Git Repository:
Adds a remote Git repository to synchronize passwords across multiple devices. |
|
Insert a New Password:
Inserts a new password entry. The |
|
Generate a New Password:
Generates a new password of specified length. |
|
Store Password with Custom Fields:
Then enter password in the first line, additional data below. Useful for storing usernames, security questions, etc. |
|
List Password Entries:
Lists all password entries, optionally under the specified path. |
|
Show Password Entry:
Shows the password for the specified entry and copies it to the clipboard. |
|
Copy Password to Clipboard Without Showing:
Copies the password to the clipboard without displaying it in the terminal. |
|
Find Password Entries:
Finds password entries matching the search term. |
|
Edit Password Entry:
Opens the password entry in a text editor to modify its content. |
|
Move Password Entry:
Moves a password entry from the old name to the new name. |
|
Copy Password Entry:
Copies a password entry to a new entry name. |
|
Remove Password Entry:
Removes a password entry. The |
|
Push Changes to Remote Repository:
Pushes local changes to the remote Git repository. |
|
Pull Changes from Remote Repository:
Pulls changes from the remote Git repository to the local password store. |
|
Commit Changes
Commit the changes to your local repository. |
|
Change GPG ID:
Changes the GPG ID used for encrypting the password store. This requires re-encrypting all passwords. |
|
Add a Recipient:
Adds a recipient to the password store, allowing them to decrypt the passwords. |
|
Remove a Recipient:
Removes a recipient from the password store, revoking their ability to decrypt the passwords. |
|
Customize Generated Passwords: You can customize the characters used in generated passwords by modifying the |
|
Exclude Symbols:
Generates a password without including symbols. |
|
Regularly Synchronize: Use |
|
Secure GPG Key: Protect your GPG private key with a strong passphrase and consider using a hardware security key. |
|
Regularly Audit Passwords: Periodically review and update your passwords to maintain strong security. |
|
Browser Extensions: Integrate Pass with browser extensions like |
|
Install and Configure: Install the browser extension and configure it to point to your password store directory (usually |
|
Automate Password Retrieval: Use |
|
Example Script (Bash):
|
|
GPG Errors: If you encounter GPG errors, ensure your GPG agent is running and properly configured. Check your |
|
Git Synchronization Issues: Resolve Git conflicts by merging changes or stashing local modifications before pulling. Use |