<aside> đź’ˇ Why Do We Need to Setup an SSH Key on Github?
In the past, whenever you wanted to push your local code to your remote repository, you had to enter your Github username and password to ensure as a security measure to make sure the right person was pushing to your remote repository.
This act of entering your username and password has been deprecated (is not longer in use) and has been replaced with SSH Keys, which is an alternate way to identify yourself that doesn't require you to enter you username and password every time
</aside>
Commands
Run from any directory
ssh-keygen -t ed25519 -C "[email protected]"
Then, run
cat PATH/TO/SSH/KEY.pub
Copy output of this command to your clipboard.
Navigate to https://github.com/settings/keys and press “New SSH key.”
Put anything you like as the “Title” and paste your clipboard into the “Key” section.
It should look something like the following:
You’ve successfully set up an SSH key for GitHub!
Back to the Rampup!