Skip to content

Instantly share code, notes, and snippets.

@suplo
Created March 17, 2017 05:46
Show Gist options
  • Save suplo/4376d8ce63facb003ed317a2b5ddfca7 to your computer and use it in GitHub Desktop.
Save suplo/4376d8ce63facb003ed317a2b5ddfca7 to your computer and use it in GitHub Desktop.
CentOS ssh-agent ForwardAgent
exec ssh-agent $BASH -s 10<&0 << EOF
ssh-add ~/.ssh/id_rsa &> /dev/null
exec $BASH <&10-
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment