Skip to content

Instantly share code, notes, and snippets.

@blainemotsinger
Last active March 27, 2019 00:10
Show Gist options
  • Select an option

  • Save blainemotsinger/8115166262f25a0704a798867f8c133e to your computer and use it in GitHub Desktop.

Select an option

Save blainemotsinger/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
@blainemotsinger

blainemotsinger commented Mar 27, 2019

Copy link
Copy Markdown
Author

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