Skip to content

Instantly share code, notes, and snippets.

@scott-joe
Last active June 16, 2016 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scott-joe/0729bdea39cd6d0ff0d848ae9a3b7397 to your computer and use it in GitHub Desktop.
Save scott-joe/0729bdea39cd6d0ff0d848ae9a3b7397 to your computer and use it in GitHub Desktop.
> kill all ssh-agent entries
ssh-add -D
> kill all ssh-agent running processes
ssh-agent -k
> Create new token(s)
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
> Copy for Github
pbcopy < ~/.ssh/id_rsa.pub
> Test key
ssh -T git@github.com
> add `config` file to ~/.ssh
> add name and email to ~/.gitconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment