Skip to content

Instantly share code, notes, and snippets.

@jabranr jabranr/config
Last active Apr 10, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.