SSH key Generation For AWS Ec2:
#ssh-keygen
keep pressing enter until generating.
Read: Video tour will help you on that?
#ls -la ~/.ssh
cat ~/.ssh/id_rsa.pub -->copy that code
take id_rsa.pub key &
git login-->settings-->SSH and GPG keys-->
SSH-->add new -->paste and save it. and
Once you are done with saving & you can execute below command
#ssh -T git@github.com
its going to create known_hosts in .ssh folder .
Now Instead using https we can use ssh URL to push our code to GitHub remote repository.
ssh -T git@github.com
To check which url mapped use
#git remote -value
To add ssh url use below cmd
#git remote add [alias name] [url]
#git remote add sshurl git@github.com:chandra4u49/git-clone.git
#git remote -v
Now you can push your changes to git remote repository using ssh url.
#git push sshurl master.
For more updates,
https://www.youtube.com/channel/UCLFq_bU6qe-MwX-UH5FYy4Q?sub_confirmation=1