Skip to content

Instantly share code, notes, and snippets.

@renderorange
Last active March 27, 2019 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renderorange/8115166262f25a0704a798867f8c133e to your computer and use it in GitHub Desktop.
Save renderorange/8115166262f25a0704a798867f8c133e to your computer and use it in GitHub Desktop.
ssh config for authentication with github
Host github.com
IdentityFile ~/.ssh/id_rsa
User git
@renderorange
Copy link
Author

renderorange commented Mar 27, 2019

the config file belongs within the .ssh directory, in the user's homedir

C:\Users\(user-name)\.ssh -- Windows
/Users/(user-name)/.ssh -- macOS
/home/(user-name)/.ssh -- Linux

in most cases, the .ssh directory isn't going to exist by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment