Skip to content

Instantly share code, notes, and snippets.

@zenazn
Created June 16, 2010 18:35
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 zenazn/441087 to your computer and use it in GitHub Desktop.
Save zenazn/441087 to your computer and use it in GitHub Desktop.
# 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