Skip to content

Instantly share code, notes, and snippets.

@codeliger
Last active November 25, 2022 21:57
Show Gist options
  • Save codeliger/69a83303c81ebf7fd1173ea4672bc03b to your computer and use it in GitHub Desktop.
Save codeliger/69a83303c81ebf7fd1173ea4672bc03b to your computer and use it in GitHub Desktop.
VS Code using id_rsa instead of custom ssh key

VS Code using id_rsa instead of custom ssh key

Add this section to your ~/.ssh/config (if it doesn't exist create it)

Host github.com
	User git
	HostName github.com
	AddKeysToAgent yes
	IdentityFile ~/.ssh/github

Change github to the name of your private key file If your private key file is not there move your public and private key file into that directory

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