Configure SSH with GitHub (4096bit Key)

git config --global user.name “FIRST_NAME LAST_NAME”
git config --global user.email “sample@example.com”
git config --list
Username and Email should display as above in your terminal/cmd
$ ls -la ~/.ssh/id_rsa*
If available, the files should display as above.
# Make a copy of the old SSH private key 
$ cp ~/.ssh/id_rsa ~/.ssh/id_rsa.old
# Make a copy of the old SSH public key
$ cp ~/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub.old
$ ssh-keygen -t rsa -b 4096 -C "sample@example.com"
Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter-key]
Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]
Add New SSH Key page on GitHub (as of 2021-April)

Tadaaa!! Its Done!! Commit some files and push to the GitHub and verify if the data is being pushed. ;)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store