Created
December 14, 2014 20:24
-
-
Save ringods/e13d3c11ed1006b47f5b to your computer and use it in GitHub Desktop.
SSH, multiple identities, but no passwords!
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
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 |
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
$ ssh -i ~/.ssh/dh-user1 user1@boba.dreamhost.com |
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
$ ssh dh-user1 | |
$ ssh dh-user2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment