Created
October 5, 2013 23:29
-
-
Save multidis/6847364 to your computer and use it in GitHub Desktop.
Organize multiple ssh private keys: save this as ~/.ssh/config
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
# bitbucket key | |
Host *.bitbucket.org | |
IdentityFile ~/.ssh/id_rsa.bitbuck | |
# hostmonsater key | |
Host *.hostmonster.com | |
IdentityFile ~/.ssh/id_rsa.hostmonst | |
# heroku | |
Host heroku.com | |
User git | |
Hostname heroku.com | |
IdentityFile ~/.ssh/id_rsa.heroku | |
IdentitiesOnly yes | |
# end heroku | |
## NOTE: needed to remove pub-file from .ssh for Heroku to work; not sure why. | |
## As an opposite case: with bitbucket needed to keep .pub there to work. |
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 -vvv git@heroku.com # or whatever the address is for ssh |
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-keygen -t rsa -C "your_email@example.com" | |
## cp to clipboard | |
xclip -sel clip < file.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment