Created
August 9, 2016 11:15
-
-
Save redrick/66fc660c4ef1c68950d7486bb3161f2a to your computer and use it in GitHub Desktop.
Screen SSH keys forwarding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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