8000 GitHub - denniskasper/pass: πŸ”‘ Manage and Sync Your Passwords and One-Time-Passwords on Linux
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

denniskasper/pass

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Manage and sync all your passwords and one-time-passwords on Linux

Watch the YouTube Tutorial

Requirements

Debian

apt install git gnupg pass rofi pass-extension-otp zbar-tools

Fedora

dnf install git gnupg pass pass-otp rofi zbar

Arch

pacman -S git gnupg pass pass-otp rofi zbar wl-clipboard

Setup pass

  1. You need a GPG key

    gpg --list-keys
    gpg --full-gen-key
  2. Backup your GPG key

    # backup
    gpg -o private.gpg --export-options backup --export-secret-keys <gpg_key_fingerprint>
    
    # restore
    gpg --import-options restore --import private.gpg

    Note

    The trust level may need to be set when restoring the key

  3. Initialize password store

    pass init <gpg_key_fingerprint>
    pass git init
  4. Manage passwords

    pass help

    Insert given password

    pass insert <pass-name>

    Generate standard password

    pass generate <pass-name>

    Generate password with no symbols and custom length (standard length is 25)

    pass generate --no-symbols <pass-name> <pass-length>

    Edit a password

    pass edit <pass-name>

    Remove a password

    pass rm <pass-name>

    Rename a password

    pass mv <old-path> <new-path>

Setup passmenu

  1. Clone this repository

    git clone git@github.com:denniskasper/pass
    cd pass
  2. Install passmenu script

    sudo cp ./passmenu /usr/bin/
  3. Assign hotkey to passmenu

    In GNOME it can be done like this:

    • Settings πŸ – Keyboard πŸ – Keyboard Shortcuts πŸ – Custom πŸ – Add
    • Enter passmenu as the "Command"
    • And set a "Shortcut" (e.g. Ctrl + Alt + Shift + P)
  4. Fix menu not focusing

    If you start the menu and it won't be focused, you need to disable Wayland and switch to X11. But don't worry it's very easy:

    • Edit /etc/gdm/custom.conf
    • Change #WaylandEnable=false to WaylandEnable=false
    • Reboot your computer
    • If you have a laptop and your touch gestures are broken afterwards, just install X11 Gestures extension and touchegg

Synchronization

I recommend syncing your passwords through an encrypted Git repository. You can read more about the reasoning in my blog post.

  1. Install git-remote-gcrypt

    • Debian: apt install git-remote-gcrypt
    • Fedora: dnf install git-remote-gcrypt
    • Arch: pacman -S git-remote-gcrypt
  2. Add encrypted remote

    pass git remote add <remote_name> gcrypt::<remote_url>
    pass git config remote.<remote_name>.gcrypt-participants "<key_fingerprint>"
    pass git config remote.<remote_name>.gcrypt-signingkey "<key_fingerprint>"
  3. Push changes

    pass git push origin main
  4. Pull changes

    git clone gcrypt::<remote_url>
    git pull origin main

Recover password-store

  1. Restore private GPG key

    gpg --import-options restore --import private.gpg

    Note

    The trust level may need to be set when restoring the key

  2. Git clone the private repository

    git clone gcrypt::<private_remote_url> ~/.password-store

About

πŸ”‘ Manage and Sync Your Passwords and One-Time-Passwords on Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
0