SSH-GitHub

setup SSH keys

Terminal part:

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

img1

GitHub part:

1- open GitHub setting Keys

img1

2- click on New SSH key you will see this result:

img1

3- write ssh-terminal in the title section

4- paste the key that we copied before in the Key section

img1

5- click on Add SSH key you will see this result:

img1


Enjoy using SSH no password any more 😎 🥳:

clone with SSH URL


Important: to change the remote from Https to SSH:

open your repo and run this command

git remote set-url origin SSH-URL

Done