Skip to content

Instantly share code, notes, and snippets.

@bendangelo
Created June 23, 2012 14:55
Show Gist options
  • Save bendangelo/2978569 to your computer and use it in GitHub Desktop.
Save bendangelo/2978569 to your computer and use it in GitHub Desktop.
Setup SSH Public Key
# curl -L https://gist.github.com/raw/2978569 | bash
# setup your ssh keys for github
echo "Please enter your email: "
read email
ssh-keygen -t rsa -C "$email"
cat ~/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub | pbcopy
read -p "\n\nYour ssh public key has been copied to your clipboard. Add it to github and press any key to continue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment