Skip to content

Instantly share code, notes, and snippets.

@peterromfeldhk
Created April 15, 2019 07:00
Show Gist options
  • Save peterromfeldhk/b7c37924b42abe9164a4645c636a3c54 to your computer and use it in GitHub Desktop.
Save peterromfeldhk/b7c37924b42abe9164a4645c636a3c54 to your computer and use it in GitHub Desktop.
(yubikey) ssh with gpg in fish
## ~/.config/fish/conf.d/gnupg.fish
# Start or re-use a gpg-agent.
#
gpgconf --launch gpg-agent
# Ensure that GPG Agent is used as the SSH agent
set -xg SSH_AUTH_SOCK ~/.gnupg/S.gpg-agent.ssh
## ~/.gnupg/gpg-agent.conf
pinentry-program /usr/local/bin/pinentry-mac
#gpg-connect-agent updatestartuptty /bye
#use-standard-socket
enable-ssh-support
#default-cache-ttl 600
#max-cache-ttl 7200
@peterromfeldhk
Copy link
Author

brew install gpg pinentry-mac

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