Skip to content

Instantly share code, notes, and snippets.

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

  • Save waynemsmith/52b30adb88af39b9fec937f7d7d32d99 to your computer and use it in GitHub Desktop.

Select an option

Save waynemsmith/52b30adb88af39b9fec937f7d7d32d99 to your computer and use it in GitHub Desktop.
GitHub SSH setup for Khurram

GitHub SSH Key Setup

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

1. Authenticate gh CLI first

gh auth login

Select:

  • GitHub.com
  • HTTPS
  • Yes (authenticate with GitHub credentials)
  • Login with a web browser

2. Generate GitHub key

ssh-keygen -t ed25519 -C "khurrams-probook-github" -f ~/.ssh/id_github

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

3. Add to ssh-agent

eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_github

4. Add to GitHub account

gh ssh-key add ~/.ssh/id_github.pub --title "khurrams-probook-github"

5. Update SSH config

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

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

6. Test

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

7. Clone deskguard

mkdir -p ~/github
git clone [email protected]:Concurrent-Systems/deskguard.git ~/github/deskguard

8. Run deskguard

cd ~/github/deskguard
python3 deskguard.py --username khurram-shahzad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment