Skip to content

Instantly share code, notes, and snippets.

@redrick
Created August 9, 2016 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redrick/66fc660c4ef1c68950d7486bb3161f2a to your computer and use it in GitHub Desktop.
Save redrick/66fc660c4ef1c68950d7486bb3161f2a to your computer and use it in GitHub Desktop.
Screen SSH keys forwarding
# Predictable SSH authentication socket location.
SOCK="/tmp/ssh-agent-$USER-screen"
if test $SSH_AUTH_SOCK && [ $SSH_AUTH_SOCK != $SOCK ]
then
rm -f /tmp/ssh-agent-$USER-screen
ln -sf $SSH_AUTH_SOCK $SOCK
export SSH_AUTH_SOCK=$SOCK
fi  zsh  [unix]  100%  95/95☰ : 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment