Skip to content

Instantly share code, notes, and snippets.

@jabranr
Last active April 10, 2018 13:08
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 jabranr/c56badc5d329206ad4f435540681e951 to your computer and use it in GitHub Desktop.
Save jabranr/c56badc5d329206ad4f435540681e951 to your computer and use it in GitHub Desktop.
ssh config boilerplate
# Save following to ~/.ssh/config
Host {work}.bitbucket.com
HostName {work}.bitbucket.com
IdentityFile ~/.ssh/{work}
Host bitbucket.org
HostName bitbucket.org
IdentityFile ~/.ssh/personal
Host github.com
HostName github.com
IdentityFile ~/.ssh/personal
# Generate keys to their specific files
ssh-keygen -t rsa -C "{email}" -f "{file_name}"
# Add keys to respective hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment