Skip to content

Instantly share code, notes, and snippets.

@calebcase
Created March 8, 2018 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebcase/044847228aff29b5dcdc6b8049ba9537 to your computer and use it in GitHub Desktop.
Save calebcase/044847228aff29b5dcdc6b8049ba9537 to your computer and use it in GitHub Desktop.
unset SSH_AGENT_PID
export SSH_AUTH_SOCK=/home/ccase/.gnupg/S.gpg-agent.ssh
cat > ~/.gnupg/gpg-agent.conf <<EOF
enable-ssh-support
default-cache-ttl 15
max-cache-ttl 15
default-cache-ttl-ssh 15
max-cache-ttl-ssh 15
EOF
@calebcase
Copy link
Author

Apply that and then restart your gpg agent:

pkill gpg-agent
gpg-connect-agent /bye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment