Catalog / Pass Password Manager Cheatsheet
Pass Password Manager Cheatsheet
A comprehensive cheat sheet for Pass, the standard Unix password manager. Covers essential commands for password generation, storage, retrieval, and synchronization with Git.
Basic Usage
Initialization
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. |
Storing Passwords
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. |
Retrieving Passwords
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. |
Advanced Operations
Searching and Editing
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. |
Moving, Copying, and Removing Entries
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 |
Synchronization with Git
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. |
Configuration and Security
GPG Key Management
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. |
Password Generation Options
Customize Generated Passwords: You can customize the characters used in generated passwords by modifying the |
Exclude Symbols:
Generates a password without including symbols. |
Security Best Practices
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. |
Integrating with Other Tools
Using with Browser Extensions
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 |
Scripting and Automation
Automate Password Retrieval: Use |
Example Script (Bash):
|
Troubleshooting
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 |