Get GitHub access set up so you can clone team repos.
Prerequisite: Set up KeePassXC first → https://gist.github.com/waynemsmith/a05fc50813025265ff6cbbb338b365d6
Fedora:
sudo dnf install -y ghUbuntu:
sudo apt install ghgit config --global user.name "Your Full Name"
git config --global user.email "[email protected]"
git config --global init.defaultBranch mainFollow the same policy as other SSH keys:
ssh-keygen -t ed25519 -C "{username}-{machine}-github" -f ~/.ssh/id_githubExample:
ssh-keygen -t ed25519 -C "khurrams-probook-github" -f ~/.ssh/id_githubPassphrase requirements:
- 4-5 random words (e.g.,
purple elephant dancing Tuesday) - Generate in KeePassXC: Tools → Password Generator → Passphrase tab
- Store in KeePassXC (personal.kdbx) as
SSH - id_github
gh auth loginSelect:
- GitHub.com
- SSH
- Use existing SSH key → select
~/.ssh/id_github.pub - Authenticate via browser
Add to ~/.ssh/config:
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_github
IdentitiesOnly yes
ssh-add ~/.ssh/id_github
gh auth status
ssh -T [email protected]Should show: Hi {username}! You've successfully authenticated...
mkdir -p ~/github ~/g
git clone [email protected]:Concurrent-Systems/deskguard.git ~/github/deskguard
git clone --recursive [email protected]:Concurrent-Systems/infra.git ~/g/infraFull workstation setup guide: https://github.com/Concurrent-Systems/infra/blob/main/docs/workstation-setup.md