Skip to content

Commit

Permalink
A few minor gpg settings to make the ssh-agent work systemwide
Browse files Browse the repository at this point in the history
  • Loading branch information
jeckhart committed Oct 19, 2019
1 parent 7bb01b0 commit 670a2aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Library/LaunchAgents/link-ssh-auth-sock.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs>
<plist version="1.0">
<dict>
<key>Label</key>
<string>link-ssh-auth-sock</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/ln -sf $HOME/.gnupg/S.gpg-agent.ssh $SSH_AUTH_SOCK</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
3 changes: 2 additions & 1 deletion gnupg/gpg-agent.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
#pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
pinentry-program /usr/local/bin/pinentry-mac
default-cache-ttl 600
max-cache-ttl 7200
enable-ssh-support
2 changes: 1 addition & 1 deletion zsh/configs/gpg_agent.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export GPG_TTY=$(tty)
gpg-connect-agent /bye
export SSH_AUTH_SOCK=$(/usr/local/MacGPG2/bin/gpgconf --list-dirs agent-ssh-socket)
# export SSH_AUTH_SOCK=$(/usr/local/MacGPG2/bin/gpgconf --list-dirs agent-ssh-socket)

0 comments on commit 670a2aa

Please sign in to comment.