Skip to content

Instantly share code, notes, and snippets.

@c0ldlimit
Last active December 16, 2015 04:19
Show Gist options
  • Save c0ldlimit/5376713 to your computer and use it in GitHub Desktop.
Save c0ldlimit/5376713 to your computer and use it in GitHub Desktop.
#github #git multiple keys and multiple github accounts
# generate new key
ssh-keygen -t rsa -C "your-email-address"
# attach new key
eval "$(ssh-agent)"
ssh-add ~/.ssh/id_rsa_NEW
# create config
vi config
Host github-COMPANY
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa_NEW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment