Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 813 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 813 Bytes

Generate new SSH Key and add it to Github

  1. Generate ssh key with your own email.
ssh-keygen -t ed25519 -C "[email protected]"
  1. Press Enter when (/c/Users/you/.ssh/id_ed25519): [Press enter]

  2. Leave it empty for no password OR choose your password (not very hard since you will need it everytime)

  3. Check if below command outputs "Agent pid number"

eval "$(ssh-agent -s)"
  1. Set the password to your private key (Optional on Windows)
ssh-add ~/.ssh/id_ed25519
  1. Copy the generated SSH key:
cat ~/.ssh/id_ed25519.pub
  1. Go to Github profile menu > Settings > SSH and GPG keys and paste it!

  2. 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!