Skip to content

Instantly share code, notes, and snippets.

@zorbax
Created December 15, 2020 21:37
Show Gist options
  • Select an option

  • Save zorbax/a87578b73072f1690d222153823b318a to your computer and use it in GitHub Desktop.

Select an option

Save zorbax/a87578b73072f1690d222153823b318a to your computer and use it in GitHub Desktop.
# macOS
cd ~/.ssh
ssh-keygen -f ~/.ssh/id_rsa_github -t rsa -C "[email protected]"
ssh-add ~/.ssh/id_rsa_github
# ssh-add -l
# Add the key to Github
cat ~/.ssh/id_rsa_github.pub
echo "
Host github.com-zorbax
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_github
" >> ~/.ssh/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment