-
-
Save richarddunks/8376255ecda65a1bcd3eb972b314f144 to your computer and use it in GitHub Desktop.
Multiple keys for Github account
This file contains hidden or 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
#create an ssh key for the second account | |
ssh-keygen -t rsa -C "[email protected]" | |
#when prompted, make sure you name the file something other than the default | |
#"Enter file in which to save the key (/Users/you/.ssh/id_rsa): /Users/you/.ssh/id_rsa2" | |
#add the second key to the ssh agent | |
ssh-add ~/.ssh/id_rsa2 | |
#copy public key to the clipboard | |
pbcopy < ~/.ssh/id_rsa.pub | |
#add the second key to your Github account | |
#follow steps here: https://help.github.com/articles/generating-ssh-keys/#step-4-add-your-ssh-key-to-your-account |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment