Skip to content

Instantly share code, notes, and snippets.

@ringods
Created December 14, 2014 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ringods/e13d3c11ed1006b47f5b to your computer and use it in GitHub Desktop.
Save ringods/e13d3c11ed1006b47f5b to your computer and use it in GitHub Desktop.
SSH, multiple identities, but no passwords!
Host dh-user1
User user1
HostName boba.dreamhost.com
IdentityFile ~/.ssh/dh-user1
Host dh-user2
User user2
HostName boba.dreamhost.com
IdentityFile ~/.ssh/dh-user2
$ ssh -i ~/.ssh/dh-user1 user1@boba.dreamhost.com
$ ssh dh-user1
$ ssh dh-user2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment