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
GitHub part:
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:
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