Posted under » Version Control on 24 April 2021
Before adding a new SSH key to your GitHub account, you should have already generated a new SSH key and adding it to the ssh-agent.
First download your key file located at your ssh folder eg. ~/.ssh/id_ed25519.pub
Go to github using browser. In the upper-right corner of any page, click your profile photo, then click Settings.
In the user settings sidebar, click SSH and GPG keys.
Click New SSH key or Add SSH key.
Click Add SSH key. If prompted, confirm your GitHub password.