Last active
April 10, 2018 13:08
-
-
Save jabranr/c56badc5d329206ad4f435540681e951 to your computer and use it in GitHub Desktop.
ssh config boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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