Skip to content

Instantly share code, notes, and snippets.

@cfsanderson
Last active July 4, 2017 04:01
Show Gist options
  • Save cfsanderson/f4910c05db43564ed48907ffe8108429 to your computer and use it in GitHub Desktop.
Save cfsanderson/f4910c05db43564ed48907ffe8108429 to your computer and use it in GitHub Desktop.
Install/generate new SSH keys
# generate new keys
echo "===== after keygen, press enter to leave in default folder ====="
echo "===== go to 'GitHub-settings-SSH and GPG keys' and delete old SSH key and click on 'New SSH Key' button. ====="
echo "===== 'pbcopy < ~/.ssh/id_rsa.pub' to copy the contents of rsa.pub and paste into Github ====="
echo "===== Next Step: Install software from the web and fix all those settings! ====="
ssh-keygen -t rsa -b 4096 -C "calebsanderson@gmail.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment