Last active
April 26, 2019 09:24
-
-
Save stuart-warren/fda78d222080ecd913c0ff0acfc3f7a9 to your computer and use it in GitHub Desktop.
gpg ssh osx
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
GPG_TTY=$(tty) | |
export GPG_TTY | |
if [ ! -e "${HOME}/.gnupg/S.gpg-agent.ssh" ]; then | |
echo "Starting gpg-agent daemon" | |
eval $(gpg-agent --daemon) | |
fi | |
export SSH_AUTH_SOCK="${HOME}/.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
pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac | |
enable-ssh-support | |
default-cache-ttl 600 | |
max-cache-ttl 7200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment