A guide on how to add an SSH key to your github account. Original Author
This guide was authored and created by Ahmad Swedani
You can find the original document here
1- First open the terminal:
2- Create new SSH key using this command and press enter three times, and copy the key
cd && ssh-keygen && cat ~/.ssh/id_rsa.pub
1- Open GitHub setting Keys
2- Click on New SSH key
you will see this result:
3- Write ssh-terminal
in the title section
4- Paste the key that we copied before in the Key section
5- Click on Add SSH key
you will see this result:
clone with SSH URL
open your repo and run this command
git remote set-url origin SSH-URL
Replace the SSH-URL with the one shown like in the picture, where the SSH-URL is now will be the SSH clone URL