Skip to content

felipezarco/add-ssh-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

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

About

Generate new SSH Key and add it to Github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published