Skip to content

Instantly share code, notes, and snippets.

@grampelberg
Last active July 27, 2022 22:03
Show Gist options
  • Save grampelberg/ae171b3991cf291474c6cda1cb943322 to your computer and use it in GitHub Desktop.
Save grampelberg/ae171b3991cf291474c6cda1cb943322 to your computer and use it in GitHub Desktop.
com.openssh.ssh-agent-brew.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.openssh.ssh-agent-brew</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/ssh-agent</string>
<string>-d</string>
<string>-a</string>
<string>/tmp/ssh-agent-brew.sock</string>
</array>
<key>StandardErrorPath</key>
<string>/tmp/ssh-agent-brew.err</string>
<key>StandardOutPath</key>
<string>/tmp/ssh-agent-brew.out</string>
</dict>
</plist>
launchctl load -w ~/Library/LaunchAgents/com.openssh.ssh-agent-brew.plist && \
export SSH_AUTH_SOCK=/tmp/ssh-agent-brew.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment