(No thinking. No stress. Just copy–paste like a pro)
This is the simplest method to generate an SSH key and save it on your local system.
No theory. No confusion. Just copy → paste → enter → done
Step 1: Open your terminal
Mac / Linux / Windows (Git Bash) — all good.
Just open it like you’re opening Netflix 😌
Step 2: Create the SSH key (magic spell 🧙♂️)
ssh-keygen -t ed25519 -C "your_email@example.com"
Note : ed25519 is is a modern cryptographic algorithm used to generate SSH keys.
In simple terms:
It’s the method used to create your SSH key — like choosing a lock type 🔑 that's it .
Now your terminal will ask questions like an interview panel:
Q1: Where to save the key?
👉 Press Enter
Q2: Enter passphrase?
👉 Press Enter (skip like ads)
Q3: Confirm passphrase?
👉 Press Enter again
🎉 Boom! Key generated. *(No stress just click Enter,Enter,Enter and that's it .) *
🧠 Step 3: Wake up the SSH agent (it’s sleeping 😴)
eval "$(ssh-agent -s)"
🔑 Step 4: Add your key to the agent
ssh-add ~/.ssh/id_ed25519
Note: Now your key is officially hired 🧑💼
📋 Step 5: Copy your public key (the VIP pass 🎟️)
cat ~/.ssh/id_ed25519.pub
Now in your terminal you will get the long string key
👉 Copy everything that appears
(yes, everything… don’t act smart and trim it 😏)
Step 6: Tell GitHub who you are
Go to GitHub.com
Profile pic → Settings
SSH and GPG keys
New SSH key
Title: My Laptop
Paste the key
Click Add SSH key
and that's it done .
GitHub: “Ah yes, I know this human now.” 🤝
🎉 DONE DONE DONE
No passwords
No tokens
No drama
No errors
No crying at 2 AM
No “permission denied” trauma
Just clean SSH vibes 😌🔐
Thankyou .
Keep Learning.
Top comments (0)