How to configure gopass in a new system

  • Posted: August 22, 2025
  • Updated: October 11, 2025

In the source machine:

# Export your GPG key:
gpg2 --export-secret-keys $KEY_ID > key.gpg

In the destination machine:

# Import your GPG key:
gpg2 --import key.gpg

# Clone your pass repo:
git clone $REPO
export PASSWORD_STORE_DIR=$PATH_TO_REPO