A minimal, step-by-step guide for securely setting up Git with GitHub via SSH in Termux or any terminal.
git config --global user.name "Your Name"
git config --global user.email "you@example.com"ssh-keygen -t ed25519 -C "you@example.com"- Press Enter to accept default file location.
- Leave passphrase blank (optional).
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519cat ~/.ssh/id_ed25519.pub📋 Copy the output.
- Visit: https://github.com/settings/ssh/new
- Paste your public key.
- Name it (e.g. Termux SSH).
- Click Add SSH Key.
ssh -T git@github.com✅ Expected:
Hi username! You've successfully authenticated...
git clone git@github.com:username/repo-name.git📌 Done! You're now set up to use GitHub with SSH.