Skip to content

Instantly share code, notes, and snippets.

@elevenpassin
Last active September 28, 2021 05:40
Show Gist options
  • Save elevenpassin/98dc1c650491168398d71072e51fc55a to your computer and use it in GitHub Desktop.
Save elevenpassin/98dc1c650491168398d71072e51fc55a to your computer and use it in GitHub Desktop.
SSH Config with multiple Identities

SSH Config /w Multiple Identities

User USER1
IdentityFile ~/.ssh/id_rsa
Host WEBSITE1
HostName example.com
User marypoppins
Host WEBSITE2
HostName example2.com
User rodreiss
Host WEBSITE3
HostName example3.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_web3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment