Skip to content

Instantly share code, notes, and snippets.

@CodeBrotha
Created May 20, 2021 16:02
Show Gist options
  • Save CodeBrotha/251ecee2c71da0b677ccd231c8d37d00 to your computer and use it in GitHub Desktop.
Save CodeBrotha/251ecee2c71da0b677ccd231c8d37d00 to your computer and use it in GitHub Desktop.
Add SSH key to Keychain (macOS)
touch ~/.ssh/config

Open it and modify the file.

Host *
    AddKeysToAgent yes
    UseKeyChain yes
    IdentityFile ~/.ssh/id_rsa

Add your ssh private key to the ssh-agent.

ssh-add ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment