GitHub SSH Setup
Configure SSH authentication for GitHub
Configuration
[
{
"type": "ssh-key",
"passphrase": "ReplacePassphraseHere"
},
{
"type": "ssh-config",
"hosts": [{
"Host": "github.com",
"AddKeysToAgent": true,
"UseKeychain": true,
"IdentityFile": "~/.ssh/id_ed25519",
"IgnoreUnknown": "UseKeychain"
}]
},
{
"type": "ssh-add",
"path": "~/.ssh/id_ed25519",
"appleUseKeychain": true
}
]What Gets Configured
This configuration completes the SSH setup for GitHub, allowing you to push and pull changes without repeatedly entering your credentials.
The configuration will:
- Generate a new SSH key (if it doesn't already exist)
- Automatically load the key to the ssh-agent
- Save the passphrase to the Apple Keychain (on macOS)
- Configure SSH to use the key for GitHub connections
Additional Setup Required
To complete the GitHub SSH setup:
- Run
codify applyto execute the configuration - Copy the contents of your public key:
cat ~/.ssh/id_ed25519.pub - Add the public key to GitHub:
- Go to GitHub SSH Keys Settings
- Click "New SSH key"
- Paste the public key content
- Save the key
After completing these steps, git operations (clone, pull, push) over SSH should work seamlessly.