Skip to content

Instantly share code, notes, and snippets.

@jrussett
Created March 26, 2020 23:10
Show Gist options
  • Save jrussett/f90315b611aa0f9e958522b12c5a6cfb to your computer and use it in GitHub Desktop.
Save jrussett/f90315b611aa0f9e958522b12c5a6cfb to your computer and use it in GitHub Desktop.
macOS SSH auth agents a tmux

tmux windows should have the following environment variable to read from a forwarded (ssh -A) agent:

export SSH_AUTH_SOCK=/Users/${USER}/.ssh/ssh_auth_sock.local

For example: SSH_AUTH_SOCK=/Users/pivotal/.ssh/ssh_auth_sock.local

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