Watch: How to add an SSH key to GitHub on Mac | Vovy
Watch Vovy do it on a Mac: "Make an SSH key and add it to GitHub so git push stops asking for a password". Vovy creates an ed25519 SSH key, saves its passphrase in your macOS Keychain, adds it to GitHub, and tests the connection.
"Make an SSH key and add it to GitHub so git push stops asking for a password"
Vovy creates an ed25519 SSH key, saves its passphrase in your macOS Keychain, adds it to GitHub, and tests the connection.
What happens in the video
- Check for existing keys: Vovy looks in ~/.ssh for keys you already have, so you do not end up with a pile of mystery keys.
- Generate a new key: Vovy runs ssh-keygen -t ed25519. An SSH key is a pair: a private half that never leaves your Mac and a public half you give to GitHub.
- Save it in Keychain: Vovy adds the key with ssh-add --apple-use-keychain and writes a small ~/.ssh/config so you never retype the passphrase.
- Add the public key to GitHub: Vovy opens GitHub Settings, SSH and GPG keys, clicks New SSH key, and pastes only the public half.
- Test the connection: Vovy runs ssh -T git@github.com and waits for "Hi username! You've successfully authenticated", then shows a card of what was set up.
Read the step-by-step guideLoading...