Created
August 2, 2013 19:05
-
-
Save ursuleacv/6142485 to your computer and use it in GitHub Desktop.
Changing the default rsa key in Git bash for heroku
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
If you're using msysgit with the OpenSSH tools, you need to either create ~/.ssh/id_rsa, or create a git config in ~/.ssh/config which points to your key. | |
Here's an example of a Git config for bitbucket that will use the correct username, and a key other than the default key (in case you maintain one key for SSH connections, and another for git accounts). | |
Host heroku.com | |
Hostname heroku.com | |
IdentityFile /C/keys/yourkey.key | |
Once in git bash, you can run two commands to add your key to your current session's ssh-agent to avoid having to repeatedly type the key's password. | |
eval `ssh-agent` | |
ssh-add /C/keys/yourkey.key (without .pub) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment