Skip to content

Instantly share code, notes, and snippets.

@gerzenstl
Created September 10, 2018 17:46
Show Gist options
  • Select an option

  • Save gerzenstl/42525613e4c0a3ed1da007f7c54da17e to your computer and use it in GitHub Desktop.

Select an option

Save gerzenstl/42525613e4c0a3ed1da007f7c54da17e to your computer and use it in GitHub Desktop.
SSH standard config file
## General settings
Host *
ServerAliveInterval 120
## Settings from personal accounts
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa_github
User git
## Settings from work or other organizations
Host gitlab.fromcompany.com
HostName gitlab.fromcompany.com
IdentityFile ~/.ssh/id_rsa_fromcompany
User git
Host dev.some-site-im-working.com
HostName dev.some-site-im-working.com
IdentityFile ~/.ssh/id_rsa_fromsiteimworking
User git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment