Skip to content

Instantly share code, notes, and snippets.

@prashcr
Last active May 9, 2019 10:29
Show Gist options
  • Save prashcr/ef8d1b1ae0ebc91bef19f48bd48dfa5a to your computer and use it in GitHub Desktop.
Save prashcr/ef8d1b1ae0ebc91bef19f48bd48dfa5a to your computer and use it in GitHub Desktop.
Linux gpg-agent config with agent forwarding and ssh support (remember to disable ssh-agent with systemctl --user disable ssh-agent)
SSH_AGENT_PID DEFAULT=
SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
no-grab
enable-ssh-support
extra-socket /tmp/S.gpg-agent.extra
pinentry-program /usr/bin/pinentry-qt
# Set the default cache time to 1 day.
default-cache-ttl 86400
default-cache-ttl-ssh 86400
# Set the max cache time to 30 days.
max-cache-ttl 2592000
max-cache-ttl-ssh 2592000
display :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment