Created
February 11, 2019 08:57
-
-
Save niteshvirani/ab5f3c2b93916a4b4c24c17840d02a86 to your computer and use it in GitHub Desktop.
Add ssh to the bash for another Git user
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
# start the ssh-agent in the background | |
eval $(ssh-agent -s) | |
# delete all cached keys before | |
ssh-add -D | |
# add key | |
ssh-add ~/.ssh/id_rsa_username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment