Skip to content

Instantly share code, notes, and snippets.

@waynemsmith
Created January 20, 2026 08:04
Show Gist options
  • Select an option

  • Save waynemsmith/0c9d5f4b4fdac3f1e9dc152f07a727f4 to your computer and use it in GitHub Desktop.

Select an option

Save waynemsmith/0c9d5f4b4fdac3f1e9dc152f07a727f4 to your computer and use it in GitHub Desktop.
GitHub SSH setup for Lynton

GitHub SSH Key Setup

Your GitHub account has no SSH keys. Let's fix that.

1. Generate GitHub key

ssh-keygen -t ed25519 -C "haynsla-imac-github" -f ~/.ssh/id_github

When prompted, enter a passphrase (4-5 random words). Store it in KeePassXC.

2. Add to ssh-agent

ssh-add --apple-use-keychain ~/.ssh/id_github

3. Add to GitHub account

gh ssh-key add ~/.ssh/id_github.pub --title "haynsla-imac-github"

4. Update SSH config

cat >> ~/.ssh/config << 'SSHCONFIG'

# GitHub
Host github.com
    HostName github.com
    User git
    IdentityFile ~/.ssh/id_github
    IdentitiesOnly yes
SSHCONFIG

5. Test

Should show: Hi haynsla! You've successfully authenticated...

6. Clone infra

cd ~/g
git clone --recursive [email protected]:Concurrent-Systems/infra.git

7. Run deskguard

cd ~/g/infra/software/deskguard
python3 deskguard.py --username lynton-hayns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment