Skip to content

Instantly share code, notes, and snippets.

@kevinhooke
Last active November 8, 2024 10:07
Show Gist options
  • Select an option

  • Save kevinhooke/a30de2d5ea9d9986cdf306775063323e to your computer and use it in GitHub Desktop.

Select an option

Save kevinhooke/a30de2d5ea9d9986cdf306775063323e to your computer and use it in GitHub Desktop.
Configuring ~/.ssh/config file for accessing multiple git repos with different keys
#Edit ~/.ssh/config and for each repo add the following block:
host hostname-of-repo
user your-id-for-this-repo
identityfile ~/.ssh/filename-of-key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment