- Generate ssh key with your own email.
ssh-keygen -t ed25519 -C "[email protected]"
-
Press Enter when (/c/Users/you/.ssh/id_ed25519): [Press enter]
-
Choose your password (not very hard since you will need it everytime)
-
Check if below command outputs "Agent pid number"
eval "$(ssh-agent -s)"
- Set the password to your private key (Optional on Windows)
ssh-add ~/.ssh/id_ed25519
- Copy the generated SSH key:
cat ~/.ssh/id_ed25519.pub
-
Go to Github profile menu > Settings > SSH and GPG keys and paste it!
-
Click the "Star" top-right button if this worked.
... That's it! Do not forget to hit the ⭐ button if you are now using SSH instead of HTTPS!