Last active
May 9, 2019 10:29
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SSH_AGENT_PID DEFAULT= | |
SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use-agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment