Skip to content

Instantly share code, notes, and snippets.

@niteshvirani
Created February 11, 2019 08:57
Show Gist options
  • Save niteshvirani/ab5f3c2b93916a4b4c24c17840d02a86 to your computer and use it in GitHub Desktop.
Save niteshvirani/ab5f3c2b93916a4b4c24c17840d02a86 to your computer and use it in GitHub Desktop.
Add ssh to the bash for another Git user
# 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