Created
June 16, 2010 18:35
-
-
Save zenazn/441087 to your computer and use it in GitHub Desktop.
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
# Make ssh-agent and screen play well | |
# If you're connecting w/ | |
ssh -At user@server screen -UxRR | |
# Put this in ~/.screenrc on remote | |
setenv SSH_AUTH_SOCK "/tmp/ssh-agent-$USER-screen" | |
# And put this in ~/.ssh/rc on remote | |
test $SSH_AUTH_SOCK && ln -sf "$SSH_AUTH_SOCK" "/tmp/ssh-agent-$USER-screen" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment