Skip to content

Instantly share code, notes, and snippets.

@kelsS
Last active July 20, 2017 17:11
Show Gist options
  • Save kelsS/477fd7638ba1bf522cb4528ab4db87eb to your computer and use it in GitHub Desktop.
Save kelsS/477fd7638ba1bf522cb4528ab4db87eb to your computer and use it in GitHub Desktop.
Example ssh config file for multiple SSH keys.
# Default GitHub
Host github.com
    HostName github.com
    User git
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa

# Work GitHub
Host work.github.com
    HostName github.com
    User git
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa_work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment