Skip to content

Instantly share code, notes, and snippets.

@DwordPtr
Created March 22, 2019 00:43
Show Gist options
  • Save DwordPtr/2696f889ec5cf4ff865ff31934a72535 to your computer and use it in GitHub Desktop.
Save DwordPtr/2696f889ec5cf4ff865ff31934a72535 to your computer and use it in GitHub Desktop.
ssh-agent gist
#make sure ssh-agent is installed on your machine
if [ -z $SSH_AUTH_SOCK ] ; then
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment