Skip to content

Instantly share code, notes, and snippets.

@goofrider
Created July 17, 2013 19:40
Show Gist options
  • Save goofrider/6023777 to your computer and use it in GitHub Desktop.
Save goofrider/6023777 to your computer and use it in GitHub Desktop.
SSH key agent forwarding. COPIED FROM https://help.github.com/articles/using-ssh-agent-forwarding

local

ssh -T git@github.com
# Attempt to SSH in to github
# Hi username! You've successfully authenticated, but GitHub does not provide
# shell access.

echo "$SSH_AUTH_SOCK"
# Print out the SSH_AUTH_SOCK variable
# /tmp/ssh-4hNGMk8AZX/agent.79453

local ~/.ssh/config

Host somewhere.com
  ForwardAgent yes

remote (somewhere.com)

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